Skip to content

Commit

Permalink
Merge branch 'ui-v2' of https://github.com/IGS/gEAR into ui-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Sep 20, 2024
2 parents 436ef0a + 414ecda commit ee0ef77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/gear/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,14 @@ def save_to_mysql(self, status=None, is_public=0):
is_public = 0
All datasets will save as private. Once the upload is complete,
the user can change the dataset to public on the dataset manager.
load_status = 'complete'
All datasets will save as 'complete'.
load_status = 'completed'
All datasets will save as 'completed'.
"""
if self.metadata is None:
raise Exception("No values to evaluate. Please load a metadata file first.")

if status is None:
status = 'complete'
status = 'completed'

df = self.metadata

Expand Down
2 changes: 1 addition & 1 deletion www/cgi/finalize_uploaded_expression_dataset.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def main():
# Load the metadata into the database
metadata = Metadata(file_path=metadata_file)
try:
metadata.save_to_mysql(status='complete', is_public=is_public)
metadata.save_to_mysql(status='completed', is_public=is_public)
result['metadata_loaded'] = 1
except Exception as e:
result['message'] = 'Error saving metadata to MySQL: {}'.format(str(e))
Expand Down

0 comments on commit ee0ef77

Please sign in to comment.