Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Defaults quantity to ensure that it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed Jan 21, 2014
1 parent 48e61d5 commit 1a976ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evepraisal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def iter_types(self):
if 'BLUEPRINT COPY' in item.get('details', ''):
item['bpc'] = True
item['prices'] = None

item['quantity'] = item.get('quantity', 1)
yield item


Expand Down

0 comments on commit 1a976ff

Please sign in to comment.