get_topics_all no page and size

This commit is contained in:
2022-09-05 16:28:21 +03:00
parent 114b2d8b0f
commit 68096b21a4
2 changed files with 5 additions and 7 deletions

View File

@@ -27,12 +27,10 @@ class TopicStorage:
return topic
@staticmethod
async def get_topics_all(page, size):
end = page * size
start = end - size
async def get_topics_all():
self = TopicStorage
async with self.lock:
return list(self.topics.values())[start:end]
return list(self.topics.values())
@staticmethod
async def get_topics_by_slugs(slugs):