diff options
| author | 2020-10-08 03:45:10 +0000 | |
|---|---|---|
| committer | 2020-10-08 03:45:10 +0000 | |
| commit | 3f14e0999bb8cde85db530fbb939e3355f9ff597 (patch) | |
| tree | fef6cba1588d8a1b2ab15551876ecb484181dc1c /bot/exts/halloween/hacktoberstats.py | |
| parent | fix logging (diff) | |
updated comments
Diffstat (limited to 'bot/exts/halloween/hacktoberstats.py')
| -rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index 2a81b91b..c5c4b383 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -289,11 +289,12 @@ class HacktoberStats(commands.Cog):                      ),                  } -                # PRs before oct 3 without invalid/spam will count +                # PRs before oct 3 no need to check for topics                  if itemdict["created_at"] < oct3:                      outlist.append(itemdict)                      continue +                # fetch topics for the pr repo                  topics_query_url = f"https://api.github.com/repos/{shortname}/topics"                  logging.debug("Fetching repo topics for " + shortname + " with url: " + topics_query_url)                  async with aiohttp.ClientSession() as session: @@ -303,7 +304,7 @@ class HacktoberStats(commands.Cog):                  if not ("names" in jsonresp2.keys()):                      logging.error("Error fetching topics for " + shortname + ": " + jsonresp2["message"]) -                # PRs after must be in repo with 'hacktoberfest' topic +                # PRs after oct 3 must be in repo with 'hacktoberfest' topic                  # unless it has 'hacktoberfest-accepted' label                  if not ("labels" in jsonresp.keys()):                      continue | 
