Skip to content

Commit

Permalink
[QOLSVC-1251] fix config key capitalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Mar 22, 2023
1 parent 446122e commit ad320d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/validation/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def _get_helpers():

def get_validation_badge(resource, in_listing=False):

afterDate = config.get('ckanext.validation.show_badges_after_last_modified_Date', "")
if afterDate != "" and h.date_str_to_datetime(afterDate) >= h.date_str_to_datetime(resource['last_modified']):
afterDate = config.get('ckanext.validation.show_badges_after_last_modified_date', "")
if afterDate and h.date_str_to_datetime(afterDate) >= h.date_str_to_datetime(resource['last_modified']):
return ''

if in_listing and not asbool(
Expand Down

0 comments on commit ad320d3

Please sign in to comment.