Skip to content

Commit

Permalink
Merge pull request #4894 from archesproject/4872_adv_search_date_error
Browse files Browse the repository at this point in the history
dates need to be not null or blank for adv. search to work, re #4872
  • Loading branch information
apeters authored Jun 6, 2019
2 parents 2c49ad9 + 474386f commit 6c8eecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/datatypes/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def append_to_document(self, document, nodevalue, nodeid, tile, provisional=Fals

def append_search_filters(self, value, node, query, request):
try:
if value['val'] != '':
if value['val'] != '' and value['val'] is not None:
date_value = datetime.strptime(value['val'], '%Y-%m-%d').isoformat()
if value['op'] != 'eq':
operators = {'gte': None, 'lte': None, 'lt': None, 'gt': None}
Expand Down

0 comments on commit 6c8eecb

Please sign in to comment.