File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed 
FusionIIIT/applications/scholarships Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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' )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments