Skip to content

Commit

Permalink
Revert "update sqlalchemy invocation"
Browse files Browse the repository at this point in the history
This reverts commit e9eccf8.
  • Loading branch information
hexylena committed Sep 21, 2023
1 parent e9eccf8 commit ec63778
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apolpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@


def _fetch():
with db.engine.connect() as connection:
roles = connection.execute(QUERY)
out = []
for role in roles:
out.append(dict(zip(columns, role)))
return out
roles = db.engine.execute(QUERY)
out = []
for role in roles:
out.append(dict(zip(columns, role)))
return out


@app.route("/organism/findAllOrganisms", methods=["GET", "POST"])
Expand Down

0 comments on commit ec63778

Please sign in to comment.