Revert "Feature/lint"

This commit is contained in:
Kosta
2023-10-27 00:07:35 +03:00
committed by GitHub
parent 05136699ee
commit b142949805
70 changed files with 1465 additions and 1223 deletions

View File

@@ -1,10 +1,9 @@
import asyncio
import json
from base.redis import redis
from orm.shout import Shout
from resolvers.zine.load import load_shouts_by
import asyncio
import json
class SearchService:
lock = asyncio.Lock()
@@ -13,7 +12,7 @@ class SearchService:
@staticmethod
async def init(session):
async with SearchService.lock:
print("[search.service] did nothing")
print('[search.service] did nothing')
SearchService.cache = {}
@staticmethod
@@ -25,7 +24,7 @@ class SearchService:
"title": text,
"body": text,
"limit": limit,
"offset": offset,
"offset": offset
}
payload = await load_shouts_by(None, None, options)
await redis.execute("SET", text, json.dumps(payload))