Skip to content

Commit

Permalink
Merge pull request #6467 from OCHA-DAP/bugfix/config-as-int
Browse files Browse the repository at this point in the history
PR fix for config value being returned as a string instead of an int
  • Loading branch information
danmihaila authored Oct 29, 2024
2 parents aefc7ec + 24f5e8c commit 1a23368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext-hdx_theme/ckanext/hdx_theme/util/jql.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
log = logging.getLogger(__name__)

dogpile_config = {
'cache.redis.expiration_time': config.get('hdx.analytics.hours_for_results_in_cache', 24) * 60 * 60,
'cache.redis.expiration_time': int(config.get('hdx.analytics.hours_for_results_in_cache', 24)) * 60 * 60,
}
dogpile_config.update(dogpile_standard_config)

Expand Down

0 comments on commit 1a23368

Please sign in to comment.