We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7402dae commit db5aeb8Copy full SHA for db5aeb8
apps/home/routes.py
@@ -8,6 +8,7 @@
8
from flask_login import login_required
9
from jinja2 import TemplateNotFound
10
11
+from apps.config import API_GENERATOR
12
13
@blueprint.route('/index')
14
@login_required
@@ -29,7 +30,7 @@ def route_template(template):
29
30
segment = get_segment(request)
31
32
# Serve the file (if exists) from app/templates/home/FILE.html
- return render_template("home/" + template, segment=segment)
33
+ return render_template("home/" + template, segment=segment, API_GENERATOR=len(API_GENERATOR))
34
35
except TemplateNotFound:
36
return render_template('home/page-404.html'), 404
0 commit comments