-storage
This commit is contained in:
@@ -182,7 +182,7 @@ class ReactedStorage:
|
||||
await self.recount(siblings)
|
||||
|
||||
print("[stat.reacted] %d reactions recounted" % c)
|
||||
print("[stat.reacted] %d shouts" % len(self.modified_shouts))
|
||||
print("[stat.reacted] %d shouts modified" % len(self.modified_shouts))
|
||||
print("[stat.reacted] %d topics" % len(self.reacted["topics"].values()))
|
||||
print("[stat.reacted] %d authors" % len(self.reacted["authors"].values()))
|
||||
print("[stat.reacted] %d replies" % len(self.reacted["reactions"]))
|
||||
|
@@ -1,12 +0,0 @@
|
||||
from base.orm import local_session
|
||||
from orm.user import User
|
||||
from orm.shout import ShoutAuthor
|
||||
|
||||
|
||||
class AuthorsStorage:
|
||||
@staticmethod
|
||||
async def get_all_authors():
|
||||
with local_session() as session:
|
||||
query = session.query(User).join(ShoutAuthor)
|
||||
result = query.all()
|
||||
return result
|
Reference in New Issue
Block a user