Skip to content

Commit

Permalink
fix type query param not working
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaobun committed Oct 19, 2022
1 parent 4a94ad5 commit c2ec706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/szurubooru_toolkit/szurubooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_posts(self, query: str, pagination: bool = True) -> Generator[str | Post

try:
# Ignore mp4 and webms
query_params = {'query': query, 'type': 'image,animation'}
query_params = {'query': f"type:image,animation {query}"}
query_url = self.szuru_api_url + '/posts/?' + urllib.parse.urlencode(query_params)
logger.debug(f'Getting post from query_url: {query_url}')

Expand Down

0 comments on commit c2ec706

Please sign in to comment.