import schedule
import settings

from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage

def schedule_jobs():
    schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
    schedule.every(settings.FALLBACK_WINDOW).hours.do(check_fallback)
    schedule.every(120).seconds.do(restart_homepage)

import schedule
import settings

from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage

def schedule_jobs():
    schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
    schedule.every(settings.FALLBACK_WINDOW_SECONDS).seconds.do(check_fallback)
    schedule.every(120).seconds.do(restart_homepage)

Change hours to seconds in cron job
Change hours to seconds in cron job

  import schedule
  import settings
  
  from .poll_pull_requests import poll_pull_requests as poll_pull_requests
  from .restart_homepage import restart_homepage as restart_homepage
  
  def schedule_jobs():
      schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
-     schedule.every(settings.FALLBACK_WINDOW).hours.do(check_fallback)
+     schedule.every(settings.FALLBACK_WINDOW_SECONDS).seconds.do(check_fallback)
      schedule.every(120).seconds.do(restart_homepage)
  
Change hours to seconds in cron job
## Code Before:
import schedule
import settings

from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage

def schedule_jobs():
    schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
    schedule.every(settings.FALLBACK_WINDOW).hours.do(check_fallback)
    schedule.every(120).seconds.do(restart_homepage)

## Instruction:
Change hours to seconds in cron job
## Code After:
import schedule
import settings

from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage

def schedule_jobs():
    schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
    schedule.every(settings.FALLBACK_WINDOW_SECONDS).seconds.do(check_fallback)
    schedule.every(120).seconds.do(restart_homepage)
