equal
deleted
inserted
replaced
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__': |