Skip to content

Commit

Permalink
refactor: simplified with defult parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo committed Mar 2, 2021
1 parent 34e8fc7 commit 45235f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions seed/views/v3/tax_lot_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ def export(self, request):
data = TaxLotProperty.get_related(model_views, column_ids, columns_from_database)

# add labels and notes
include_notes = True
if 'include_notes' in request.data.keys():
include_notes = request.data.get('include_notes')
include_notes = request.data.get('include_notes', True)
for i, record in enumerate(model_views):
label_string = []
note_string = []
Expand Down

0 comments on commit 45235f1

Please sign in to comment.