Work on badges and related.

This commit is contained in:
Scott Idem
2023-01-13 16:51:57 -05:00
parent 0eaaaa4d7e
commit 93f3b4f184
3 changed files with 5 additions and 1 deletions

View File

@@ -649,6 +649,8 @@ def sql_select(
log.error('An operational error exception happened. This is likely a "MySQL server has gone away" error. Going to try again...')
log.exception('**** *** ** * ### BEGIN ### Operational Exception Happened: Trying again... * ** *** ****')
log.error('^^^^ ^^^ ^^ ^ ### END ### Operational Exception ^ ^^ ^^^ ^^^^')
log.error('SQL Alchemy DB URI:')
log.error(settings.SQLALCHEMY_DB_URI)
sql_connect(current_db=db)

View File

@@ -42,7 +42,7 @@ app = FastAPI(
)
# log.setLevel(logging.INFO)
# log.setLevel(logging.DEBUG)
# log.debug(config.settings)
if aether_cfg_sql_result := sql_select(

View File

@@ -73,6 +73,8 @@ class Event_Badge_Template_Base(BaseModel):
script_src: Optional[str]
passcode: Optional[str]
other_json: Optional[str]
notes: Optional[str]
_processed_at: datetime.datetime = PrivateAttr(default_factory=datetime.datetime.now)