fix: use non-list var correctly

This commit is contained in:
2023-07-21 17:16:37 +02:00
parent 355385b4df
commit d5901e9cb3

View File

@@ -74,7 +74,7 @@ def get_dispatch():
# add phone numbers and emails #
for obj in response:
for person in dispatch_objects:
if dispatch_objects.username == obj["person"]:
if obj.username == obj["person"]:
obj.update({ "email" : person.email })
obj.update({ "phone" : person.phone })