fix: Set the daily schedule to a specific time, rather than 24hr from start up (#3645)

This commit is contained in:
boc-the-git
2024-05-26 14:00:51 +10:00
committed by GitHub
parent 55b91bf847
commit e07467df57
3 changed files with 50 additions and 5 deletions

View File

@@ -57,6 +57,8 @@ class AppSettings(BaseSettings):
ALLOW_SIGNUP: bool = False
DAILY_SCHEDULE_TIME: str = "23:45"
# ===============================================
# Security Configuration
@@ -199,7 +201,11 @@ class AppSettings(BaseSettings):
def OIDC_READY(self) -> bool:
"""Validates OIDC settings are all set"""
required = {self.OIDC_CLIENT_ID, self.OIDC_CONFIGURATION_URL, self.OIDC_USER_CLAIM}
required = {
self.OIDC_CLIENT_ID,
self.OIDC_CONFIGURATION_URL,
self.OIDC_USER_CLAIM,
}
not_none = None not in required
valid_group_claim = True
if (not self.OIDC_USER_GROUP or not self.OIDC_ADMIN_GROUP) and not self.OIDC_GROUPS_CLAIM: