Skip to content

Commit

Permalink
Do not create Maintenance element if no info provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-ide committed Dec 9, 2024
1 parent 246ad9b commit 5d075b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/home/utils/create_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def create_maintenance(dataset_node:Node=None, description:str=None, update_freq
maintenance_node = dataset_node.find_child(names.MAINTENANCE)
if maintenance_node:
dataset_node.children.remove(maintenance_node)
return
return

# add_node either creates a new node or returns an existing one, so we don't need to check for existence
# or remove the old one.
Expand Down

0 comments on commit 5d075b7

Please sign in to comment.