remove broken pwa feature and fix weekly analytics counter

This commit is contained in:
2026-04-20 15:34:04 +02:00
parent c14a86b190
commit 0cd500e9f2
7 changed files with 7 additions and 48 deletions

View File

@@ -57,8 +57,8 @@ with st.container(key="counter-table"):
case CounterType.WEEKLY.value:
stats = sql.get_weekly_analytics(counter_id)
stats_current = stats.iloc[-1]["count"]
stats_prev = stats.iloc[-2]["count"]
stats_current = stats.iloc[0]["count"]
stats_prev = stats.iloc[1]["count"]
case CounterType.MONTHLY.value:
stats = sql.get_monthly_analytics(counter_id)