Skip to content

Commit 3f93537

Browse files
committed
Move stuff together
1 parent 85ab721 commit 3f93537

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pgcommitfest/commitfest/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,18 +273,18 @@ def _refresh_relevant_commitfests(cls, for_update):
273273

274274
inprogress_cf = cfs["in_progress"]
275275
if inprogress_cf and inprogress_cf.enddate < current_date:
276-
inprogress_cf.auto_move_active_patches()
277276
inprogress_cf.status = CommitFest.STATUS_CLOSED
278277
inprogress_cf.save()
278+
inprogress_cf.auto_move_active_patches()
279279
inprogress_cf.send_closure_notifications()
280280

281281
open_cf = cfs["open"]
282282

283283
if open_cf.startdate <= current_date:
284284
if open_cf.enddate < current_date:
285-
open_cf.auto_move_active_patches()
286285
open_cf.status = CommitFest.STATUS_CLOSED
287286
open_cf.save()
287+
open_cf.auto_move_active_patches()
288288
open_cf.send_closure_notifications()
289289
else:
290290
open_cf.status = CommitFest.STATUS_INPROGRESS
@@ -297,9 +297,9 @@ def _refresh_relevant_commitfests(cls, for_update):
297297
cls.next_draft_cf(current_date).save()
298298
elif draft_cf.enddate < current_date:
299299
# If the draft commitfest has started, we need to update it
300-
draft_cf.auto_move_active_patches()
301300
draft_cf.status = CommitFest.STATUS_CLOSED
302301
draft_cf.save()
302+
draft_cf.auto_move_active_patches()
303303
draft_cf.send_closure_notifications()
304304
cls.next_draft_cf(current_date).save()
305305

0 commit comments

Comments
 (0)