diff --git a/aqimon/database.py b/aqimon/database.py index 55b46e9..8bef5b6 100644 --- a/aqimon/database.py +++ b/aqimon/database.py @@ -154,6 +154,11 @@ async def clean_old(dbconn: databases.Database, retention_minutes: int) -> None: values={"last_week_timestamp": last_week_timestamp}, ) + await dbconn.execute( + "DELETE FROM epa_aqi_log WHERE event_time < :last_week_timestamp", + values={"last_week_timestamp": last_week_timestamp}, + ) + async def add_epa_read( dbconn: databases.Database, diff --git a/logo.svg b/logo.svg index 2c35430..78dea91 100644 --- a/logo.svg +++ b/logo.svg @@ -25,8 +25,8 @@ inkscape:document-units="mm" showgrid="false" inkscape:zoom="1.9855336" - inkscape:cx="399.64068" - inkscape:cy="382.01317" + inkscape:cx="400.14432" + inkscape:cy="382.51682" inkscape:window-width="1846" inkscape:window-height="1016" inkscape:window-x="0" @@ -59,7 +59,7 @@ x="74.249962" y="87.855034" inkscape:label="sky" - inkscape:export-filename="../ca8f2e9/aqimon.png" + inkscape:export-filename="../755c25f7/aqimon.png" inkscape:export-xdpi="86.136803" inkscape:export-ydpi="86.136803" />