Skip to content

Commit b19aa2d

Browse files
authored
Merge pull request #1 from nityatiwari002/main
resolved invitation notifications error
2 parents bcd84d3 + 037f6bc commit b19aa2d

File tree

1 file changed

+6
-5
lines changed
  • FusionIIIT/applications/scholarships

1 file changed

+6
-5
lines changed

FusionIIIT/applications/scholarships/views.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ def convener_view(request):
108108
active_batches = range(datetime.datetime.now().year - 4 , datetime.datetime.now().year + 1)
109109
# active_batches=str(active_batches)
110110
# active_batches.split(',')
111+
print(active_batches)
111112
querybatch = []
112-
for batch in active_batches:
113-
if batch > 2019:
114-
batch=batch%2000
115-
querybatch.append(batch)
113+
for curbatch in active_batches:
114+
if curbatch > 2019:
115+
curbatch=curbatch%2000
116+
querybatch.append(curbatch)
116117
print( active_batches)
117118
query = reduce(or_, (Q(id__id__startswith=batch) for batch in querybatch))
118119
print(query)
@@ -142,7 +143,7 @@ def convener_view(request):
142143
notification_convocation_flag=True,
143144
invite_convocation_accept_flag=False) for student in recipient])
144145
# Notification ends
145-
146+
print(batch)
146147
messages.success(request,
147148
award + ' applications are invited successfully for ' + str(batch) + ' batch(es)')
148149
return HttpResponseRedirect('/spacs/convener_view')

0 commit comments

Comments
 (0)