Improve conference importer and series attendance
This commit is contained in:
parent
dbce9e5358
commit
a87c9f993e
5 changed files with 87 additions and 0 deletions
|
|
@ -413,12 +413,14 @@ def build_conference_series_list() -> list[StrDict]:
|
|||
next_conf = next(
|
||||
(conf for conf in linked if conf["latest_date"] >= date.today()), None
|
||||
)
|
||||
attended = any(conf.get("going") or conf.get("linked_trip") for conf in linked)
|
||||
item: StrDict = {
|
||||
"id": series_id,
|
||||
**series,
|
||||
"count": len(linked),
|
||||
"latest": latest,
|
||||
"next_conf": next_conf,
|
||||
"attended": attended,
|
||||
}
|
||||
series_items.append(item)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue