Fix bug caused by autocompletion

This commit is contained in:
Raphael Michel
2021-03-26 09:57:37 +01:00
parent 1e193ca58e
commit 2c2a7e07f0

View File

@@ -201,7 +201,7 @@ class ParametrizedOrderNotificationType(NotificationType):
def groupkey(op):
return op.item, op.variation, op.subevent
cart = [(k, list(v)) for k, v in groupby(sorted(positions, key=sortkey()), key=groupkey())]
cart = [(k, list(v)) for k, v in groupby(sorted(positions, key=sortkey), key=groupkey)]
items = []
for (item, variation, subevent), pos in cart:
ele = [str(len(pos)) + 'x ' + str(item)]