Skip to content

Commit 8a3aab3

Browse files
author
georgezheng123
authored
syntax error fix
1 parent d5a33db commit 8a3aab3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/views.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def not_found(error):
1616

1717
#---------------------------------------------- Section and Article Endpoints
1818

19-
2019
@app.route('/sections/<string:section_slug>/' + \
2120
'subsection/<string:subsection_slug>' )
2221
def get_section_by_slug(section_slug,subsection_slug):
@@ -31,9 +30,7 @@ def get_section_by_slug(section_slug,subsection_slug):
3130
).first()
3231
if target.parent_slug == section_slug:
3332
return jsonify({"description": target.description})
34-
article_route = '''
35-
/sections/<string:section_slug>/subsection/<string:subsection_slug>/articles/
36-
'''
33+
article_route = '''/sections/<string:section_slug>/subsection/<string:subsection_slug>/articles/'''
3734
@app.route(article_route , defaults={'article_slug': None})
3835
@app.route(article_route + '<string:article_slug>' )
3936
def get_section_articles(section_slug,subsection_slug,article_slug):

0 commit comments

Comments
 (0)