fix broken api
This commit is contained in:
2
e621.py
2
e621.py
@@ -177,7 +177,7 @@ class E621:
|
|||||||
})).json()
|
})).json()
|
||||||
if 'success' in r:
|
if 'success' in r:
|
||||||
return []
|
return []
|
||||||
return [E621PostVersion.from_dict(p) for p in r if p['tags']]
|
return [E621PostVersion.from_dict(p) for p in r if p.get('tags') is not None]
|
||||||
|
|
||||||
async def get_tag_aliases(self, name: str) -> List[str]:
|
async def get_tag_aliases(self, name: str) -> List[str]:
|
||||||
data = (await self.client.get('/tag_aliases.json', params={'search[antecedent_name]': name})).json()
|
data = (await self.client.get('/tag_aliases.json', params={'search[antecedent_name]': name})).json()
|
||||||
|
Reference in New Issue
Block a user