From dae50d9393c77fa23609feb667b47b652e754a1c Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Mon, 15 Jul 2024 12:37:47 +0200 Subject: [PATCH] Fix compatibility with Indico v3.3.3 --- indico_mlz_export/api.py | 4 ++-- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/indico_mlz_export/api.py b/indico_mlz_export/api.py index 54f5d39..010bbc8 100644 --- a/indico_mlz_export/api.py +++ b/indico_mlz_export/api.py @@ -116,7 +116,7 @@ def all_registrations_csv(event): reg_data = _registration.data_by_field rdata = {} for section in _registration.sections_with_answered_fields: - for field in section.active_fields: + for field in section.available_fields: if field.id not in reg_data: continue ft = ft_to_logickey(field.title) @@ -196,7 +196,7 @@ def all_fields(registration, flat=False): else: data = defaultdict(dict) for section in registration.sections_with_answered_fields: - for field in section.active_fields: + for field in section.available_fields: if field.id not in reg_data: continue if flat: diff --git a/setup.cfg b/setup.cfg index 6046e82..88a7d1c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,7 @@ setuptools>=39 setuptools_scm[toml]>=3.4 install_requires= - indico>=3.1 + indico>=3.3.3 [options.entry_points] indico.plugins = mlz_export = indico_mlz_export.plugin:MLZExporterPlugin