Skip to content

Commit

Permalink
Change app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TomacGG committed Sep 10, 2024
1 parent a58fc44 commit d781f83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from flask import Flask, request, redirect, make_response
from flask import Flask, request, redirect, make_response, Response
import sqlite3
import urllib
import html
import quoter_templates as templates

# Run using `poetry install && poetry run flask run --reload`
Expand Down Expand Up @@ -32,7 +33,8 @@ def check_authentication():
@app.route("/")
def index():
quotes = db.execute("select id, text, attribution from quotes order by id").fetchall()
return templates.main_page(quotes, request.user_id, request.args.get('error'))

return Response(quotes, request.user_id, request.args.get('error'))


# The quote comments page
Expand Down

0 comments on commit d781f83

Please sign in to comment.