queries-refactoring-2
All checks were successful
Deploy on push / deploy (push) Successful in 26s

This commit is contained in:
2024-05-18 14:15:05 +03:00
parent 7d97f40826
commit fd7bd385fc
7 changed files with 46 additions and 34 deletions

View File

@@ -22,8 +22,8 @@ from services.search import search_service
async def cache_by_id(entity, entity_id: int):
q = select(entity).filter(entity.id == entity_id)
[x] = get_with_stat(q)
caching_query = select(entity).filter(entity.id == entity_id)
[x] = get_with_stat(caching_query)
if not x:
return