Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
add import
remove duplicate keyword
  • Loading branch information
0xjjoyy committed Aug 24, 2022
1 parent f2b7ec6 commit 082df95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions guardrails/generate-scp-markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas

import jinja2
from jinja2 import Template
from jinja2 import Template, select_autoescape

prefix="../docs/guardrails"
scp_filename=f"{prefix}/scp-guardrails.md"
Expand All @@ -23,7 +23,7 @@ def to_pretty_json(value):

def get_template():
templateLoader = jinja2.FileSystemLoader(searchpath="./")
templateEnv = jinja2.Environment(loader=templateLoader, autoescape=select_autoescape(['html', 'xml']), loader=PackageLoader('mypackage'))
templateEnv = jinja2.Environment(loader=templateLoader, autoescape=select_autoescape(['html', 'xml']))
templateEnv.filters['tojson_pretty']=to_pretty_json
TEMPLATE_FILE = "scp-template.md"
template = templateEnv.get_template(TEMPLATE_FILE)
Expand Down
6 changes: 3 additions & 3 deletions guardrails/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pandas==1.2.2
tabulate==0.8.7
jinja2==2.11.3
pandas==1.4.3
tabulate==0.8.10
jinja2==3.1.2

0 comments on commit 082df95

Please sign in to comment.