Skip to content

Commit

Permalink
Properly await an async function call
Browse files Browse the repository at this point in the history
  • Loading branch information
exflikt committed Oct 7, 2024
1 parent 6387e6c commit 73b90da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routers/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async def compute_waiting_orders() -> int:

@router.get("/stat", response_class=HTMLResponse)
async def get_stat(request: Request):
export_placements()
await export_placements()
(
total_sales_all_time,
total_sales_today,
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test:
JUST_UNSTABLE=1 just --fmt --check

# Test Python files
uv run --frozen ruff check
uv run --frozen ruff check --ignore F821
uv run --frozen ruff format --diff
uv run --frozen pyright --stats
uv run --frozen pytest
Expand Down

0 comments on commit 73b90da

Please sign in to comment.