Skip to content

Commit

Permalink
cron: don't delete group if it has patches
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Jul 17, 2024
1 parent eb4c8a5 commit 0f41a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function run_groups() {
$shift = db_fetch_shift($year, $shift);
$group = db_fetch_group($year, $number, $shift);

if (!$students) {
if (!$students && (!$group || !$group->patches)) {
db_delete($group);
continue;
}
Expand Down

0 comments on commit 0f41a64

Please sign in to comment.