From d15664df438cf520ad05b1d0ad6f81248983d278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Mon, 18 Nov 2024 22:40:26 +0100 Subject: [PATCH] Some queries and really low res prototype for visual analytics dashboard. --- src/data/database.py | 16 ++++- src/gio/index.html | 159 ++++++++++++++++++++++++++++++++----------- 2 files changed, 135 insertions(+), 40 deletions(-) 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 @@ Document + + + -
+
+ +
+ + +
+
+
+
+
+
+ + \ No newline at end of file