Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vokamut committed Sep 29, 2024
1 parent 93fa33c commit 0dea557
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ private function generateMessage(): void
$yesterday = date('Y-m-d', time() - (60 * 60 * 24));

if (
array_key_exists('app_count', $this->db[$yesterday]) &&
array_key_exists('app_released', $this->db[$yesterday]) &&
$this->db[$yesterday]['app_count'] !== 0 &&
$this->db[$yesterday]['app_released'] !== 0 &&
(
Expand All @@ -121,6 +123,8 @@ private function generateMessage(): void
$this->message .= PHP_EOL . 'Прогресс всех пакетов: ' . $matches[1] . '/' . $matches[2] . ' (' . round($matches[1] / $matches[2] * 100) . '%)';

if (
array_key_exists('common_released', $this->db[$yesterday]) &&
array_key_exists('common_count', $this->db[$yesterday]) &&
$this->db[$yesterday]['common_released'] !== 0 &&
$this->db[$yesterday]['common_count'] !== 0 &&
(
Expand Down

0 comments on commit 0dea557

Please sign in to comment.