Fix error when anonymous name has accidentally been allowed to be None

This commit is contained in:
Midgard 2020-02-28 13:43:39 +01:00
parent b7552ce080
commit aa331b6843
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -52,7 +52,7 @@ class Order(db.Model):
)
user["paid"] = user.get("paid", True) and item.paid
user["dishes"] = user.get("dishes", []) + [item.dish_name]
group[item.get_name()] = user
group[str(item.get_name())] = user
return group