Skip to content

Commit

Permalink
dates need to be not null or blank for adv. search to work, re #4872
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Jun 6, 2019
1 parent 06b6856 commit 474386f
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 474386f

Please sign in to comment.