Add check to determine if `sub_value` is `rand-d`, always. (#612)

This commit is contained in:
lamusmaser 2023-11-30 19:23:58 -07:00 committed by GitHub
parent 43708ee2a3
commit 099c70a13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ class AppConfig:
# missing nested values
for sub_key, sub_value in value.items():
if sub_key not in redis_config[key].keys():
if (
sub_key not in redis_config[key].keys()
or sub_value == "rand-d"
):
if sub_value == "rand-d":
sub_value = self._build_rand_daily()