feat: add configuration management UI for fees, pairings, and application settings

This commit is contained in:
2026-06-02 16:07:30 +02:00
parent 107595826a
commit 815284289e
6 changed files with 397 additions and 33 deletions
+15
View File
@@ -590,6 +590,21 @@ class ConfigSettingRepository:
for row in cursor.fetchall()
]
def get_latest_updated_at(self) -> datetime | None:
"""Get the latest updated_at timestamp from config_settings table."""
with self._store.connect() as conn:
cursor = conn.execute(
"""
SELECT MAX(updated_at) as latest_updated_at
FROM config_settings
"""
)
row = cursor.fetchone()
if row and row[0]:
# Convert string timestamp to datetime
return datetime.fromisoformat(row[0].replace('Z', '+00:00'))
return None
class ConfigPairingRepository:
def __init__(self, store: DuckDBStore) -> None: