restructured,inbox-removed
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import asyncio
|
||||
import json
|
||||
from base.redis import redis
|
||||
from orm.shout import Shout
|
||||
from resolvers.zine.load import load_shouts_by
|
||||
from services.redis import redis
|
||||
from db.shout import Shout
|
||||
from schema.zine.load import load_shouts_by
|
||||
|
||||
|
||||
class SearchService:
|
||||
@@ -12,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
|
||||
@@ -24,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))
|
||||
|
Reference in New Issue
Block a user