Skip to content

Commit 6cfd8ee

Browse files
committed
More changes
1 parent 3f93537 commit 6cfd8ee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pgcommitfest/commitfest/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,24 +284,24 @@ def _refresh_relevant_commitfests(cls, for_update):
284284
if open_cf.enddate < current_date:
285285
open_cf.status = CommitFest.STATUS_CLOSED
286286
open_cf.save()
287+
cls.next_open_cf(current_date).save()
287288
open_cf.auto_move_active_patches()
288289
open_cf.send_closure_notifications()
289290
else:
290291
open_cf.status = CommitFest.STATUS_INPROGRESS
291292
open_cf.save()
292-
293-
cls.next_open_cf(current_date).save()
293+
cls.next_open_cf(current_date).save()
294294

295295
draft_cf = cfs["draft"]
296296
if not draft_cf:
297297
cls.next_draft_cf(current_date).save()
298298
elif draft_cf.enddate < current_date:
299-
# If the draft commitfest has started, we need to update it
299+
# Create next CF first so auto_move has somewhere to move patches
300300
draft_cf.status = CommitFest.STATUS_CLOSED
301301
draft_cf.save()
302+
cls.next_draft_cf(current_date).save()
302303
draft_cf.auto_move_active_patches()
303304
draft_cf.send_closure_notifications()
304-
cls.next_draft_cf(current_date).save()
305305

306306
return cls.relevant_commitfests(for_update=for_update)
307307

pgcommitfest/commitfest/templates/mail/commitfest_closure.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You have {{patches|length}} open patch{{patches|length|pluralize:"es"}} that nee
66

77
{% for poc in patches %}
88
- {{poc.patch.name}}
9-
https://commitfest.postgresql.org/{{commitfest.id}}/{{poc.patch.id}}/
9+
https://commitfest.postgresql.org/patch/{{poc.patch.id}}/
1010
{% endfor %}
1111

1212
Please take action on {{patches|length|pluralize:"these patches,this patch"}}:

0 commit comments

Comments
 (0)