Skip to content

Commit

Permalink
submission: create original when record finalised
Browse files Browse the repository at this point in the history
* Fixes #653.
  • Loading branch information
GraemeWatt committed May 9, 2023
1 parent 614d556 commit 92f759d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hepdata/modules/records/utils/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from flask_celeryext import create_celery_app
from flask_login import current_user
from hepdata_converter_ws_client import get_data_size
from hepdata.config import CFG_DATA_TYPE, CFG_PUB_TYPE
from hepdata.config import CFG_DATA_TYPE, CFG_PUB_TYPE, CFG_SUPPORTED_FORMATS
from hepdata.ext.opensearch.admin_view.api import AdminIndexer
from hepdata.ext.opensearch.api import get_records_matching_field, \
delete_item_from_index, index_record_ids, push_data_keywords
Expand Down Expand Up @@ -764,7 +764,7 @@ def do_finalise(recid, publication_record=None, force_finalise=False,
send_finalised_email(hep_submission)

if convert:
for file_format in ['yaml', 'csv', 'yoda', 'root']:
for file_format in CFG_SUPPORTED_FORMATS:
convert_and_store.delay(hep_submission.inspire_id, file_format, force=True)

if send_tweet:
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.4dev20230502"
__version__ = "0.9.4dev20230509"

0 comments on commit 92f759d

Please sign in to comment.