Skip to content

Commit

Permalink
fix for config value being returned as a string instead of an int
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-m-g committed Oct 29, 2024
1 parent aefc7ec commit 24f5e8c
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 24f5e8c

Please sign in to comment.