From abfac1d3bb330b2843daddc3bc550d719be8f64b Mon Sep 17 00:00:00 2001 From: grabowski Date: Sun, 9 Aug 2026 17:12:22 +0700 Subject: [PATCH] fix: correct all-time hours value and update backend limit --- src/postgres_history.py | 4 ++-- src/static/dashboard.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/postgres_history.py b/src/postgres_history.py index 2b19fb9..70d96c8 100644 --- a/src/postgres_history.py +++ b/src/postgres_history.py @@ -21,8 +21,8 @@ class PostgresHistory: end: datetime.datetime, limit: int = 2000, ) -> List[Dict]: - if not 1 <= limit <= 5000: - raise ValueError("limit must be between 1 and 5000") + if not 1 <= limit <= 10000: + raise ValueError("limit must be between 1 and 10000") if start >= end: raise ValueError("start must be before end") diff --git a/src/static/dashboard.html b/src/static/dashboard.html index 91cab95..b793f29 100644 --- a/src/static/dashboard.html +++ b/src/static/dashboard.html @@ -195,7 +195,7 @@

PostgreSQL history

Select a RID flow station to load the last 7 days

- +