Skip to content

Commit 0b4503d

Browse files
committed
simplify query based on comments
1 parent 13fa49c commit 0b4503d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mapswipe_workers/python_scripts/results_to_mapping_sessions_results.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ def copy_results_batch(first_timestamp, last_timestamp):
2525
and ms.group_id = r.group_id
2626
and ms.user_id = r.user_id;
2727
insert into mapping_sessions_results
28-
(
29-
select
30-
r.*
31-
from results_batch r
32-
where
33-
r.project_id = m.project_id and
34-
r.group_id = m.group_id and
35-
r.user_id = m.user_id
36-
)
28+
(select r.* from results_batch r)
3729
on conflict do nothing;
3830
"""
3931
p_con.query(

0 commit comments

Comments
 (0)