fix broken api

This commit is contained in:
2025-08-27 04:16:36 +03:00
parent 5d11a1a3de
commit 8f5772b5dc

View File

@@ -137,7 +137,7 @@ class E621Post:
class E621PostVersion:
id: int
post_id: int
tags: Optional[str]
tags: str
updater_id: int
updated_at: str
rating: Rating
@@ -177,7 +177,7 @@ class E621:
})).json()
if 'success' in r:
return []
return [E621PostVersion.from_dict(p) for p in r if p['version']]
return [E621PostVersion.from_dict(p) for p in r if p['tags']]
async def get_tag_aliases(self, name: str) -> List[str]:
data = (await self.client.get('/tag_aliases.json', params={'search[antecedent_name]': name})).json()