We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b034a1 commit 9be869bCopy full SHA for 9be869b
1 file changed
thing/views.py
@@ -534,6 +534,7 @@ def orders(request):
534
cursor.execute(queries.order_aggregation, (request.user.id,))
535
char_orders = OrderedDict()
536
for row in dictfetchall(cursor):
537
+ row['slots'] = 5
538
char_orders[row['character_id']] = row
539
540
# Retrieve... skills? Hrm.
@@ -542,9 +543,6 @@ def orders(request):
542
543
if char_id not in char_orders:
544
continue
545
- if 'slots' not in char_orders[char_id]:
546
- char_orders[char_id]['slots'] = 5
547
-
548
char_orders[char_id]['slots'] += (cs.level * ORDER_SLOT_SKILLS.get(cs.skill.item.name, 0))
549
550
# Calculate free slots
0 commit comments