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.
1 parent 835f113 commit bf8b822Copy full SHA for bf8b822
mapswipe_workers/mapswipe_workers/generate_stats/generate_stats.py
@@ -11,12 +11,12 @@ def get_recent_projects(hours: int = 3):
11
pg_db = auth.postgresDB()
12
query_insert_results = """
13
select project_id
14
- from results
+ from mapping_sessions
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
+ where start_time >= %(timestamp)s
20
group by project_id
21
"""
22
timestamp = (dt.datetime.utcnow() - dt.timedelta(hours=hours)).isoformat()[
0 commit comments