Skip to content

Commit

Permalink
fix(economy): broken filter statement
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaor committed Dec 4, 2022
1 parent 14290d3 commit 19db016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions economy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def mutate(self, info, *args, **kwargs):
from economy.utils import create_food_order_pdf_file

with transaction.atomic():
orders = soci_order_session.orders.all(
orders = soci_order_session.orders.filter(
product__type=SociProduct.Type.FOOD
)
session = SociSession.objects.create(
Expand Down Expand Up @@ -727,7 +727,7 @@ def mutate(self, info, *args, **kwargs):
type=SociSession.Type.STILLETIME,
created_by=info.context.user,
)
session.created_at = soci_order_session
session.created_at = soci_order_session.created_at

for order in orders:
# Drink orders are paid when registered. So no need to charge here
Expand Down

0 comments on commit 19db016

Please sign in to comment.