Skip to content

Commit 2dcfe58

Browse files
author
matthias_schaub
committed
Syntax error of sql query correction.
1 parent 3ae1850 commit 2dcfe58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapswipe_workers/mapswipe_workers/firebase_to_postgres/archive_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def archive_project(project_ids: list) -> None:
2828

2929
fb_db = auth.firebaseDB()
3030
ref = fb_db.reference("v2/projects/{0}/status".format(project_id))
31-
ref.set({"archived"})
31+
ref.set("archived")
3232

3333
pg_db = auth.postgresDB()
3434
sql_query = (
3535
"UPDATE projects SET status = 'archived' "
36-
+ "WHERE project_id = {0}".format(project_id)
36+
+ "WHERE project_id = '{0}'".format(project_id)
3737
)
3838
pg_db.query(sql_query)

0 commit comments

Comments
 (0)