Commit 762c108c6dc008453fbff099340086a31f6f17a5
Updated 30 day summary with latest date value
Thomas Freedman committed on 2/13/2023, 4:01:07 PMParent: eecdfefa2386a4a2279cd8a37f63ffcdec298aa0
Files changed
MediaProcessor.py | changed |
MediaProcessor.py | ||
---|---|---|
@@ -625,9 +625,9 @@ | ||
625 | 625 … | # |
626 | 626 … | # Report the number of files added to each grupe in the last 30 days |
627 | 627 … | # |
628 | 628 … | strt = (datetime.now() - timedelta(days=30)).strftime("%Y-%m-%d") |
629 | - sql = "SELECT DISTINCT SUBSTR(sqlts, 6, 5) as tme, grupe, count(*) as cnt " | |
629 … | + sql = "SELECT DISTINCT SUBSTR(max(sqlts), 6, 5) as tme, grupe, count(*) as cnt " | |
630 | 630 … | sql += "FROM IPFS_HASH_INDEX WHERE sqlts > ? " |
631 | 631 … | sql += "GROUP BY grupe ORDER BY sqlts desc;" |
632 | 632 … | args = " Date Videos Grupe (Videos Added in the Last 30 Days)" |
633 | 633 … | print(args, flush=True) |
Built with git-ssb-web