Skip to content

Commit 085a7e2

Browse files
committed
add comment to sql query
1 parent cddd54b commit 085a7e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mapswipe_workers/mapswipe_workers/firebase_to_postgres/transfer_results.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ def save_results_to_postgres(results_file, project_id, filter_mode: bool):
305305
from tasks
306306
where project_id = %(project_id)s
307307
),
308+
-- Results for which we can't join a task from the tasks table
309+
-- are invalid. For these invalid results the group_id set by the app
310+
-- is not correct. Hence, we delete these results from the
311+
-- results_temp table.
308312
results_to_delete as (
309313
select
310314
r.task_id

0 commit comments

Comments
 (0)