diff --git a/src/data/database.py b/src/data/database.py index 4bffc24..b824279 100644 --- a/src/data/database.py +++ b/src/data/database.py @@ -223,5 +223,17 @@ class Database: 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 + """" \ No newline at end of file diff --git a/src/gio/index.html b/src/gio/index.html index a082905..573717d 100644 --- a/src/gio/index.html +++ b/src/gio/index.html @@ -5,62 +5,145 @@