Author: sebb
Date: Sun Feb 8 17:33:37 2026
New Revision: 1931762
Log:
Now that agenda includes roster, use it
Modified:
comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
Modified:
comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
==============================================================================
--- comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
Sun Feb 8 15:16:41 2026 (r1931761)
+++ comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
Sun Feb 8 17:33:37 2026 (r1931762)
@@ -90,14 +90,16 @@ def agenda(environ, user, fproject = Non
_txtfile, url = latest_agenda(environ)
if has_access(user, project):
agenda, _cached = get_bat(url, environ)
- titleguess = guess_title(project)
for entry in agenda:
- if titleguess == entry.get('title'):
+ # Ideally the agenda should include the bare project id, but it
does not
+ # So we get it from the roster (could also use stats)
+ rid = entry.get('roster',
'').replace('https://whimsy.apache.org/roster/committee/', '')
+ if project == rid:
report = entry
break
comments, _cached = get_bat(BAT_COMMENTS, environ)
- title = report and report.get('title', titleguess)
+ title = report and report.get('title', guess_title(project))
if title in comments:
comments = comments[title]
else: