Add cron jobs (#60)

* feat: finish up cron jobs

* feat: clean up
This commit is contained in:
Jayden Pyles
2025-04-24 22:03:28 -05:00
committed by GitHub
parent 186b4a0231
commit 3475d66995
21 changed files with 717 additions and 16 deletions

View File

@@ -1,7 +1,5 @@
# STL
import os
from gc import disable
from queue import Empty
from typing import Any, Optional
from datetime import datetime, timedelta
import logging
@@ -78,10 +76,10 @@ def create_access_token(
async def get_current_user(token: str = Depends(oauth2_scheme)):
LOG.info(f"Getting current user with token: {token}")
LOG.debug(f"Getting current user with token: {token}")
if not token:
LOG.error("No token provided")
LOG.debug("No token provided")
return EMPTY_USER
if len(token.split(".")) != 3:
@@ -89,7 +87,7 @@ async def get_current_user(token: str = Depends(oauth2_scheme)):
return EMPTY_USER
try:
LOG.info(
LOG.debug(
f"Decoding token: {token} with secret key: {SECRET_KEY} and algorithm: {ALGORITHM}"
)