diff --git a/hepdata/modules/records/utils/analyses.py b/hepdata/modules/records/utils/analyses.py index 3893339f..983a407f 100644 --- a/hepdata/modules/records/utils/analyses.py +++ b/hepdata/modules/records/utils/analyses.py @@ -87,9 +87,10 @@ def update_analyses(endpoint=None): else: - # Remove resource from 'analysis_resources' list. - resource = list(filter(lambda a: a.file_location == _resource_url, analysis_resources))[0] - analysis_resources.remove(resource) + # Remove resources from 'analysis_resources' list. + resources = list(filter(lambda a: a.file_location == _resource_url, analysis_resources)) + for resource in resources: + analysis_resources.remove(resource) if num_new_resources: diff --git a/hepdata/version.py b/hepdata/version.py index c4a0bd28..ab77b827 100644 --- a/hepdata/version.py +++ b/hepdata/version.py @@ -28,4 +28,4 @@ and parsed by ``setup.py``. """ -__version__ = "0.9.4dev20240910" +__version__ = "0.9.4dev20241003" diff --git a/requirements.txt b/requirements.txt index 39d660fe..d7d14537 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,17 +5,17 @@ gunicorn==23.0.0 hepdata-converter-ws-client==0.2.2 hepdata-validator==0.3.5 invenio-access==2.0.0 # Indirect (needed by invenio-admin) -invenio-accounts==5.1.1 +invenio-accounts==5.1.2 invenio-admin==1.5.0 invenio-assets==3.0.3 invenio-config==1.0.4 invenio-db[postgresql]==1.1.5 invenio-logging[sentry_sdk]==2.1.1 -invenio-oauthclient==4.0.0 +invenio-oauthclient==4.0.2 invenio-pidstore==1.3.1 invenio-records==2.3.0 invenio-search[opensearch2]==2.4.1 -invenio-theme==3.3.0 +invenio-theme==3.4.1 invenio-userprofiles==3.0.0 python-twitter-v2==0.9.1 responses==0.25.3