Skip to content

Commit

Permalink
update table improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Jan 19, 2022
1 parent 983cae5 commit 0c74f43
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions ena_upload/ena_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,23 +983,16 @@ def main():
print("There was an ERROR during submission:")
sys.exit(receipt)

if action in ['ADD', 'MODIFY']:
if draft:
schema_dataframe = update_table_simple(schema_dataframe,
schema_targets,
action)
else:
schema_dataframe = update_table(schema_dataframe,
if action in ['ADD', 'MODIFY'] and not draft:
schema_dataframe = update_table(schema_dataframe,
schema_targets,
schema_update)
# save updates in new tables
save_update(schema_tables, schema_dataframe)
elif action in ['CANCEL', 'RELEASE']:
else:
schema_dataframe = update_table_simple(schema_dataframe,
schema_targets,
action)
# save updates in new tables
save_update(schema_tables, schema_dataframe)
# save updates in new tables
save_update(schema_tables, schema_dataframe)


if __name__ == "__main__":
Expand Down

0 comments on commit 0c74f43

Please sign in to comment.