jobs.py 545 B

12345678910111213141516
  1. """Jobs for scheduler module"""
  2. from app import app
  3. def update_department(state_id, department_type):
  4. """Update department"""
  5. app.update_department(state_id, department_type)
  6. def send_progress_message(state_id, department_type, language):
  7. """Send department progress message"""
  8. app.send_progress_message(state_id, department_type, language)
  9. def send_lotery_message(state_id, department_type, language, amount):
  10. """Send department loterymessage"""
  11. app.send_lotery_message(state_id, department_type, language, amount)