We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 835f113 + e75193b commit b2ea4b2Copy full SHA for b2ea4b2
mapswipe_workers/mapswipe_workers/generate_stats/generate_stats.py
@@ -11,12 +11,8 @@ def get_recent_projects(hours: int = 3):
11
pg_db = auth.postgresDB()
12
query_insert_results = """
13
select project_id
14
- from results
15
- -- Using timestamp attribute here which is set for all projects
16
- -- and also represents the start_time for newer projects.
17
- -- "Old" projects have no start_time attribute.
18
- -- There is an index defined on "timestamp".
19
- where "timestamp" >= %(timestamp)s
+ from mapping_sessions
+ where start_time >= %(timestamp)s
20
group by project_id
21
"""
22
timestamp = (dt.datetime.utcnow() - dt.timedelta(hours=hours)).isoformat()[
0 commit comments