diff options
author | 2019-10-20 00:45:55 +1000 | |
---|---|---|
committer | 2019-10-20 00:45:55 +1000 | |
commit | 2f8b64070aa9abc9681b86190f2a17792439a24c (patch) | |
tree | 5a5b5a454e54a046246e6c79981f2adaab0ecde2 | |
parent | Merge pull request #291 from RohanRadia/master (diff) | |
parent | Merge remote-tracking branch 'origin/hacktober-issue-finder' into hacktober-i... (diff) |
Hacktober issue finder fix - divide count by 100 (#301)
Hacktober issue finder fix - divide count by 100
-rw-r--r-- | bot/seasons/halloween/hacktober-issue-finder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seasons/halloween/hacktober-issue-finder.py b/bot/seasons/halloween/hacktober-issue-finder.py index 2f1d6ac7..10732374 100644 --- a/bot/seasons/halloween/hacktober-issue-finder.py +++ b/bot/seasons/halloween/hacktober-issue-finder.py @@ -58,7 +58,7 @@ class HacktoberIssues(commands.Cog): else: url = URL if self.cache_normal is not None: - page = random.randint(1, min(1000, self.cache_normal["total_count"])) + page = random.randint(1, min(1000, self.cache_normal["total_count"]) // 100) url += f"&page={page}" log.debug(f"making api request to url: {url}") |