Skip to content

Commit

Permalink
zerocracy#102: fix after in find-all-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegorov committed Oct 11, 2024
1 parent d7e32c7 commit 73d2361
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions judges/find-all-issues/find-all-issues.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@
quota_aware
over do |repository, issue|
repo = Fbe.octo.repo_name_by_id(repository)
after = nil
begin
after = Fbe.octo.issue(repo, issue)[:created_at]
rescue Octokit::NotFound
Fbe.fb.query("(and (eq where 'github') (eq repository #{repository}) (eq issue #{issue}))").delete!
next 0
end
next 0 if after.nil?
Fbe.octo.search_issues("repo:#{repo} type:issue created:<=#{after.iso8601[0..9]}")[:items].each do |json|
f =
Fbe.if_absent do |ff|
Expand Down

0 comments on commit 73d2361

Please sign in to comment.