Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Trying to fix 403 API error via adding sleep (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
gomzyakov authored Aug 20, 2024
1 parent 0163132 commit 931ea0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ public function run(): void
// Generate HTML-page with issues for each proramming language
foreach (ProgrammingLanguage::cases() as $language) {
$issues = $this->github_api_client->searchIssuesWithGoodFirtsIssueTag($language->value);
print_r(PHP_EOL);
print_r($language->name . ' issues count: ' . count($issues) . PHP_EOL);

$renderer = new Renderer($this->root_path);
$renderer->renderPage($issues, $language);

sleep(2);
}
}
}

0 comments on commit 931ea0f

Please sign in to comment.