Skip to content

Commit

Permalink
using same check as in jinja2 template
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimarBauer committed Oct 7, 2023
1 parent cb6efa5 commit c77eac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mslib/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ def help():

@APP.route("/mss/imprint")
def imprint():
if os.path.exists(imprint_file):
if file_exists(imprint_file):
content = get_content(imprint_file)
return render_template("/content.html", act="imprint", content=content)
else:
return ""

@APP.route("/mss/gpdr")
def gdpr():
if os.path.exists(gdpr_file):
if file_exists(gdpr_file):
content = get_content(gdpr_file)
return render_template("/content.html", act="gdpr", content=content)
else:
Expand Down

0 comments on commit c77eac5

Please sign in to comment.