Skip to content

Commit 4cc10b3

Browse files
committed
Fixes to the automated IFF round creator
1 parent 4177cb8 commit 4cc10b3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

hypha/apply/funds/management/commands/create_iff_round.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,12 @@ def handle(self, *args, **options):
7676

7777
next_month_start, next_month_end = get_next_month_start_end()
7878

79-
print("DAYS")
80-
print(days_before_month_start)
81-
print((next_month_start - datetime.date.today()).days > days_before_month_start)
82-
8379
if (next_month_start - datetime.date.today()).days > days_before_month_start:
8480
self.stdout.write("Current date difference is not less than or equal to days_before_months_start, thus a new IFF round will not be created.")
8581
return
8682

87-
current_title = f"IFF-{datetime.date.today().year}-{datetime.date.today().month}"
88-
next_title = f"IFF-{next_month_start.year}-{next_month_start.month}"
89-
83+
current_title = f"IFF-{datetime.date.today().year}-{datetime.date.today().strftime('%m')}"
84+
next_title = f"IFF-{next_month_start.year}-{next_month_start.strftime('%m')}"
9085

9186
leads = []
9287

@@ -111,7 +106,8 @@ def handle(self, *args, **options):
111106
title=next_title,
112107
lead=lead,
113108
start_date=next_month_start,
114-
end_date=next_month_end
109+
end_date=next_month_end,
110+
workflow_name=fund.workflow_name,
115111
)
116112

117113
try:

0 commit comments

Comments
 (0)