fix: show '— No report yet' for assets without dex_report_date
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user