Fix error when anonymous name has accidentally been allowed to be None
This commit is contained in:
parent
b7552ce080
commit
aa331b6843
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Order(db.Model):
|
||||||
)
|
)
|
||||||
user["paid"] = user.get("paid", True) and item.paid
|
user["paid"] = user.get("paid", True) and item.paid
|
||||||
user["dishes"] = user.get("dishes", []) + [item.dish_name]
|
user["dishes"] = user.get("dishes", []) + [item.dish_name]
|
||||||
group[item.get_name()] = user
|
group[str(item.get_name())] = user
|
||||||
|
|
||||||
return group
|
return group
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue