scripts/stats.py
changeset 2345 f78caf12f32d
parent 2322 98fe07a5542f
child 2592 040359ccd20b
equal deleted inserted replaced
2344:621252e2cc18 2345:f78caf12f32d
   271   priority_group = priority_logic.getGroup(priority_logic.EMAIL)
   271   priority_group = priority_logic.getGroup(priority_logic.EMAIL)
   272   job_fields = {
   272   job_fields = {
   273       'priority_group': priority_group,
   273       'priority_group': priority_group,
   274       'task_name': 'setupStudentProposalMailing',
   274       'task_name': 'setupStudentProposalMailing',
   275       'key_data': [program_entity.key()]}
   275       'key_data': [program_entity.key()]}
       
   276 
       
   277   job_logic.updateOrCreateFromFields(job_fields)
       
   278 
       
   279 
       
   280 def startUniqueUserIdConversion():
       
   281   """Creates the job that is responsible for adding unique user ids.
       
   282   """
       
   283 
       
   284   from soc.logic.models.job import logic as job_logic
       
   285   from soc.logic.models.priority_group import logic as priority_logic
       
   286 
       
   287   priority_group = priority_logic.getGroup(priority_logic.CONVERT)
       
   288   job_fields = {
       
   289       'priority_group': priority_group,
       
   290       'task_name': 'setupUniqueUserIdAdder'}
   276 
   291 
   277   job_logic.updateOrCreateFromFields(job_fields)
   292   job_logic.updateOrCreateFromFields(job_fields)
   278 
   293 
   279 
   294 
   280 def reviveJobs(amount):
   295 def reviveJobs(amount):
   491       'rawSaver': rawSaver,
   506       'rawSaver': rawSaver,
   492       'startSpam': startSpam,
   507       'startSpam': startSpam,
   493       'reviveJobs': reviveJobs,
   508       'reviveJobs': reviveJobs,
   494       'deidleJobs': deidleJobs,
   509       'deidleJobs': deidleJobs,
   495       'acceptedStudentsCSVExport': acceptedStudentsCSVExport,
   510       'acceptedStudentsCSVExport': acceptedStudentsCSVExport,
       
   511       'startUniqueUserIdConversion': startUniqueUserIdConversion,
   496   }
   512   }
   497 
   513 
   498   interactive.remote(args, context)
   514   interactive.remote(args, context)
   499 
   515 
   500 if __name__ == '__main__':
   516 if __name__ == '__main__':