Skip to content

Commit

Permalink
Fix station setup
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Aug 28, 2023
1 parent f5d6711 commit baf0619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wis2box-management/wis2box/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def remove_collection(collection_id: str, backend: bool = True,
LOGGER.error(f'Unable to remove collection for {collection_id}')
return False

delete_collection_item('discovery-metadata', collection_id)
if collection_id not in ['discovery-metadata', 'stations', 'messages']:
delete_collection_item('discovery-metadata', collection_id)

return True

Expand Down

0 comments on commit baf0619

Please sign in to comment.