You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2026/10/18 12:38:04 UTC

svn commit: r1939239 - comdev/reporter.apache.org/trunk/scripts

Author: sebb
Date: Sun Oct 18 12:38:04 2026
New Revision: 1939239

Log:
Fix: filter only works once; correct date syntax

Modified:
   comdev/reporter.apache.org/trunk/scripts/mailglomper2.py

Modified: comdev/reporter.apache.org/trunk/scripts/mailglomper2.py
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/mailglomper2.py	Sun Oct 18 11:59:13 2026	(r1939238)
+++ comdev/reporter.apache.org/trunk/scripts/mailglomper2.py	Sun Oct 18 12:38:04 2026	(r1939239)
@@ -182,11 +182,11 @@ async def gather_stats():
         try:
             tsprint(f"Processing {listpart}@{domainpart}")
             async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(60)) as client:
-                active_months = (await get_stats(client, listpart, domainpart, '199001'))['active_months']
+                active_months = (await get_stats(client, listpart, domainpart, '1990-01'))['active_months']
                 recent = list([x, active_months.get(x)] for x in months)
                 total = sum((x[1] or 0) for x in recent)
                 tsprint(f"Recent emails for {listpart}@{domainpart}: {recent} total: {total}")
-                fetch = filter(lambda x: active_months.get(x,0) > 0, months)
+                fetch = list(filter(lambda x: active_months.get(x,0) > 0, months))
                 tsprint(f"Fetching data for {list(fetch)}")
                 results = await asyncio.gather(*[weekly_stats(client, listpart, domainpart, date) for date in fetch])
             for result in results: