Skip to content

Commit

Permalink
f str
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Dec 4, 2023
1 parent 8f38a95 commit cbeeca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/repositories/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def fetch_one(
raise ValueError("Must provide at least one parameter.")

queries = [
"SELECT {READ_PARAMS} FROM maps WHERE 1 = 1",
f"SELECT {READ_PARAMS} FROM maps WHERE 1 = 1",
"AND id = :id" if id is not None else None,
"AND md5 = :md5" if md5 is not None else None,
"AND filename = :filename" if filename is not None else None,
Expand Down
2 changes: 1 addition & 1 deletion app/repositories/scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async def fetch_many(
page_size: int | None = None,
) -> list[Score]:
queries = [
"SELECT {READ_PARAMS} FROM scores WHERE 1 = 1",
f"SELECT {READ_PARAMS} FROM scores WHERE 1 = 1",
"AND map_md5 = :map_md5" if map_md5 is not None else None,
"AND mods = :mods" if mods is not None else None,
"AND status = :status" if status is not None else None,
Expand Down

0 comments on commit cbeeca3

Please sign in to comment.