Skip to content
Snippets Groups Projects
Commit 554fa727 authored by Julian's avatar Julian
Browse files

Make dd7457a9 compatible with older SQLAlchemy versions

parent f8e294c9
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ def upgrade():
sa.column('created', sa.DateTime),
)
conn = op.get_bind()
results = conn.execute(sa.select(table.c.id, table.c.path)).fetchall()
results = conn.execute(sa.select([table.c.id, table.c.path])).fetchall()
for photo_id, path in results:
path = os.path.join(current_app.config['UPLOAD_FOLDER'], path)
created = datetime.datetime.utcfromtimestamp(os.path.getctime(path))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment