Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Bugfix: if there were no updated issue in repository, and Scraper is …
Browse files Browse the repository at this point in the history
…trying to read some old issue, error fails.
  • Loading branch information
IlyaFaer committed Mar 5, 2020
1 parent 203831f commit 2712960
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scraper/sheet_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ def retrieve_updated(self):
issues = repo.get_issues(**self._build_filter(repo_name))
logging.info("{repo}: processing issues".format(repo=repo.full_name))

for index, issue in enumerate(issues):
if repo_name not in self._last_issue_updates.keys():
self._last_issue_updates[repo_name] = (
datetime.datetime(1, 1, 1),
"",
)
is_first_update = True
if repo_name not in self._last_issue_updates.keys():
self._last_issue_updates[repo_name] = (datetime.datetime(1, 1, 1), "")
is_first_update = True

for index, issue in enumerate(issues):
# "since" filter returns the issue, which was
# the last updated in previous filling - skip it
if (
Expand Down

0 comments on commit 2712960

Please sign in to comment.