mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2026-03-03 15:10:51 +01:00
Fix query hashing
This commit is contained in:
9
fastapi_book_server/app/utils/orjson_default.py
Normal file
9
fastapi_book_server/app/utils/orjson_default.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from typing import Any
|
||||
|
||||
|
||||
def default(value: Any):
|
||||
if isinstance(value, frozenset):
|
||||
list_value = list(value)
|
||||
return "-".join(sorted(list_value))
|
||||
|
||||
return value
|
||||
Reference in New Issue
Block a user