fix
This commit is contained in:
parent
a13c75fe48
commit
fd18a1221d
|
@ -14,7 +14,7 @@ from resolvers.topics import topic_follow, topic_unfollow
|
||||||
from services.stat.viewed import ViewedStorage
|
from services.stat.viewed import ViewedStorage
|
||||||
from services.zine.shoutauthor import ShoutAuthorStorage
|
from services.zine.shoutauthor import ShoutAuthorStorage
|
||||||
from services.zine.shoutscache import ShoutsCache
|
from services.zine.shoutscache import ShoutsCache
|
||||||
from services.zine import SearchService
|
from services.search import SearchService
|
||||||
|
|
||||||
|
|
||||||
@mutation.field("incrementView")
|
@mutation.field("incrementView")
|
||||||
|
|
|
@ -7,13 +7,11 @@ class SearchService:
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def init(session):
|
async def init(session):
|
||||||
self = SearchService
|
async with SearchService.lock:
|
||||||
async with self.lock:
|
SearchService.cache = {}
|
||||||
self.cache = {}
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
async def search(text) -> [Shout]:
|
async def search(text) -> [Shout]:
|
||||||
self = SearchService
|
async with SearchService.lock:
|
||||||
async with self.lock:
|
|
||||||
return [] # TODO: implement getting shouts list
|
return [] # TODO: implement getting shouts list
|
||||||
|
|
Loading…
Reference in New Issue
Block a user