Skip to content

Commit

Permalink
cron job for refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal614 committed Jul 20, 2021
1 parent f0eb9b0 commit 0db6582
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Binary file added __pycache__/manage.cpython-38.pyc
Binary file not shown.
4 changes: 4 additions & 0 deletions base/cron.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import requests

def req():
res = requests.get('https://rocsiiitkalyani.herokuapp.com')
Binary file modified resources/__pycache__/settings.cpython-38.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion resources/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
# https://docs.djangoproject.com/en/3.0/howto/static-files/
# 0 0 * * *
CRONJOBS = [
('0 0 * * *','cp.cron.problem_of_the_Day'), #python3 manage.py crontab add
# ('0 0 * * *','cp.cron.problem_of_the_Day'), #python3 manage.py crontab add
('*/25 * * * *','base.req'),
]


Expand Down

0 comments on commit 0db6582

Please sign in to comment.