add test command
This commit is contained in:
3
e621.py
3
e621.py
@@ -137,3 +137,6 @@ class E621:
|
||||
async def get_posts(self, tags='', page=1, limit=50) -> List[E621Post]:
|
||||
r = (await self.client.get('/posts.json', params={'tags': tags, 'page': page, 'limit': limit})).json()
|
||||
return [E621Post.from_dict(p) for p in r['posts']]
|
||||
|
||||
async def get_post(self, post_id: str) -> E621Post:
|
||||
return (await self.get_posts(f'id:{post_id}'))[0]
|
||||
|
Reference in New Issue
Block a user