Skip to content

Commit

Permalink
fix inventory export
Browse files Browse the repository at this point in the history
  • Loading branch information
smeea committed Apr 4, 2021
1 parent 2c40aab commit 6c0b850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask-backend/deckExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def deckExport(d, format):
library[k] = {'c': get_library_by_id(k), 'q': v}

deck_name = d['name']
if d['branch_name']:
if 'branch_name' in d:
deck_name += f" [{d['branch_name']}]"

deck = ''
Expand Down

0 comments on commit 6c0b850

Please sign in to comment.