fix: show '— No report yet' for assets without dex_report_date

This commit is contained in:
2026-05-23 18:46:58 -04:00
parent 6016f6a5e6
commit a305766d65
5 changed files with 9 additions and 30 deletions
+1 -1
View File
@@ -1056,7 +1056,7 @@ def list_assets(
like = f"%{q}%"
params.extend([like, like, like, like])
if no_dex_days is not None:
conditions.append("(dex_report_date IS NULL OR dex_report_date < datetime('now', '-' || ? || ' days'))")
conditions.append("(dex_report_date IS NULL OR REPLACE(dex_report_date, 'T', ' ') < datetime('now', '-' || ? || ' days'))")
params.append(no_dex_days)
where = " AND ".join(conditions)