Skip to content

Commit

Permalink
πŸ› Ideal load import: fix behaviour when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Jun 23, 2023
1 parent 1fa7011 commit f4b06c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tomatic/persons.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def update(key, data):
# Explicit, load and loads are a method
if 'load' in data.keys():
if type(data['load']) == int:
result['loads'][key] = data['load']
else:
result.setdefault('loads',ns())[key] = data['load']
elif key in result.setdefault('loads', ns()):
del result['loads'][key]
if 'groups' in data:
for group in data.groups:
Expand Down

0 comments on commit f4b06c8

Please sign in to comment.