update for TZ more

This commit is contained in:
2025-04-01 13:20:36 -04:00
parent 0754f332c9
commit 4327cdd858
9 changed files with 50 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import os
import os, pytz
class Config:
DEBUG = False
@@ -16,6 +16,10 @@ class Config:
OUI_API_LIMIT_PER_SEC = int(os.getenv('OUI_API_LIMIT_PER_SEC', '2'))
OUI_API_DAILY_LIMIT = int(os.getenv('OUI_API_DAILY_LIMIT', '10000'))
# Timezone
APP_TIMEZONE = os.getenv('APP_TIMEZONE', 'UTC')
TZ = pytz.timezone(APP_TIMEZONE)
class DevelopmentConfig(Config):
"""Development configuration."""
DEBUG = True