Skip to content

Commit

Permalink
Await async calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jvessella committed Apr 30, 2024
1 parent 7dafa20 commit ce6ad28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gamebrain/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,12 @@ async def get_is_team_active(
from .util import enable_sql_logger, disable_sql_logger

logging.info("Enabling SQL logging")
enable_sql_logger()
await enable_sql_logger()
active_teams = {
team["id"]
for team in await db.get_active_teams()
}
disable_sql_logger()
await disable_sql_logger()
logging.info("Disabled SQL logging")
response = GenericResponse(
success=(team_id in active_teams),
Expand Down

0 comments on commit ce6ad28

Please sign in to comment.