Skip to content

Commit 52387c6

Browse files
Merge pull request #302 from mapswipe/hotfix-dev
Hotfix dev
2 parents 8af4951 + 2dcfe58 commit 52387c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mapswipe_workers/mapswipe_workers/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def query(self, query, data=None):
6060
self._db_connection.commit()
6161
self._db_cur.close()
6262

63-
def copy_from(self, f, table, columns):
63+
def copy_from(self, f, table, columns=None):
6464
self._db_cur = self._db_connection.cursor()
6565
self._db_cur.copy_from(f, table, columns=columns)
6666
self._db_connection.commit()

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)