Skip to content

Commit

Permalink
records: allow for multiple versions (closes #826)
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeWatt committed Oct 3, 2024
1 parent 7a83dba commit ec42d7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions hepdata/modules/records/utils/analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion hepdata/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20240910"
__version__ = "0.9.4dev20241003"

0 comments on commit ec42d7c

Please sign in to comment.