Skip to content

Commit db5aeb8

Browse files
committed
Home Routes - Added API_GEN context
1 parent 7402dae commit db5aeb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/home/routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from flask_login import login_required
99
from jinja2 import TemplateNotFound
1010

11+
from apps.config import API_GENERATOR
1112

1213
@blueprint.route('/index')
1314
@login_required
@@ -29,7 +30,7 @@ def route_template(template):
2930
segment = get_segment(request)
3031

3132
# Serve the file (if exists) from app/templates/home/FILE.html
32-
return render_template("home/" + template, segment=segment)
33+
return render_template("home/" + template, segment=segment, API_GENERATOR=len(API_GENERATOR))
3334

3435
except TemplateNotFound:
3536
return render_template('home/page-404.html'), 404

0 commit comments

Comments
 (0)