mirror of
https://github.com/himanshugoel2797/MisskeyBooruImageBot.git
synced 2024-10-22 23:19:06 +00:00
Minor tag concatenation bug fix
This commit is contained in:
parent
f0c45fc288
commit
73a84d1417
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class BotInstance:
|
||||||
gelbooru_tags_exclude = "+" + self.gelbooru_tags_exclude
|
gelbooru_tags_exclude = "+" + self.gelbooru_tags_exclude
|
||||||
else:
|
else:
|
||||||
gelbooru_tags_exclude = ""
|
gelbooru_tags_exclude = ""
|
||||||
gelbooru_json = requests.get(self.gelbooru_url + self.gelbooru_tags + gelbooru_tags_exclude + "&pid=" + str(page_number)).json()
|
gelbooru_json = requests.get(self.gelbooru_url + self.gelbooru_tags + '+' + gelbooru_tags_exclude + "&pid=" + str(page_number)).json()
|
||||||
max_pages = gelbooru_json['@attributes']['count'] // 100 + (1 if gelbooru_json['@attributes']['count'] % 100 != 0 else 0)
|
max_pages = gelbooru_json['@attributes']['count'] // 100 + (1 if gelbooru_json['@attributes']['count'] % 100 != 0 else 0)
|
||||||
# Make sure there are images on the page
|
# Make sure there are images on the page
|
||||||
if 'post' not in gelbooru_json:
|
if 'post' not in gelbooru_json:
|
||||||
|
|
Loading…
Reference in a new issue