mirror of
https://github.com/TrentSPalmer/flask_photo_scaling_app.git
synced 2025-02-18 13:40:55 -08:00
fix style app/photo_routes/proutes.py
This commit is contained in:
parent
6b27846388
commit
a2de385638
@ -33,7 +33,9 @@ def get_photo_list(contributor_id):
|
||||
password=current_app.config['DATABASE_PASSWORD']
|
||||
)
|
||||
cur = conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
|
||||
cur.execute("SELECT photo_name,id FROM photo WHERE contributor_id=%s ORDER BY timestamp,\"DateTimeOriginal\" DESC", (contributor_id, ))
|
||||
my_sql = "SELECT photo_name,id FROM photo WHERE contributor_id=%s "
|
||||
my_sql += "ORDER BY timestamp,\"DateTimeOriginal\" DESC"
|
||||
cur.execute(my_sql, (contributor_id, ))
|
||||
photos = cur.fetchall()
|
||||
conn.close()
|
||||
return photos
|
||||
|
Loading…
x
Reference in New Issue
Block a user