Some queries and really low res prototype for visual analytics dashboard.

refactor-to-mono
Giò Diani 2024-11-18 22:40:26 +01:00
parent e2734a3db5
commit d15664df43
2 changed files with 135 additions and 40 deletions

View File

@ -223,5 +223,17 @@ class Database:
property_id property_id
""") """)
# Anzahl der extrahierten properties pro Exktraktionsvorgang
def properties_per_extraction(self, property_id):
return self.connection.sql("""
SELECT
COUNT(property_id),
strftime(created_at, '%Y-%m-%d') AS date
FROM
consultancy_d.extractions
WHERE
type == 'calendar'
GROUP BY
date
ORDER BY date ASC
""""

File diff suppressed because one or more lines are too long