fix /v1/top/guilds not returning

This commit is contained in:
Yusur 2025-10-07 09:40:44 +02:00
parent 79b1b574a8
commit 17bdd52253
2 changed files with 2 additions and 1 deletions

View file

@ -26,7 +26,7 @@ from suou import twocolon_list, WantsContentType
from .colors import color_themes, theme_classes from .colors import color_themes, theme_classes
__version__ = '0.5.0-dev37' __version__ = '0.5.0-dev40'
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__)) APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))

View file

@ -510,6 +510,7 @@ class Guild(Base):
gg = self.simple_info() gg = self.simple_info()
gg['subscriber_count'] = await self.subscriber_count() gg['subscriber_count'] = await self.subscriber_count()
gg['post_count'] = await self.post_count() gg['post_count'] = await self.post_count()
return gg
Topic = deprecated('renamed to Guild')(Guild) Topic = deprecated('renamed to Guild')(Guild)