git ssb

0+

thomas-dev-patchwork / MediaProcessor



Commit 762c108c6dc008453fbff099340086a31f6f17a5

Updated 30 day summary with latest date value

Thomas Freedman committed on 2/13/2023, 4:01:07 PM
Parent: eecdfefa2386a4a2279cd8a37f63ffcdec298aa0

Files changed

MediaProcessor.pychanged
MediaProcessor.pyView
@@ -625,9 +625,9 @@
625625 #
626626 # Report the number of files added to each grupe in the last 30 days
627627 #
628628 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 "
630630 sql += "FROM IPFS_HASH_INDEX WHERE sqlts > ? "
631631 sql += "GROUP BY grupe ORDER BY sqlts desc;"
632632 args = " Date Videos Grupe (Videos Added in the Last 30 Days)"
633633 print(args, flush=True)

Built with git-ssb-web