diff --git a/Procfile b/Procfile index 6aea502..6233e4e 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1 @@ -web: python scanandshow.py clock: python taskrunner.py diff --git a/taskrunner.py b/taskrunner.py index abd5177..91d7cbc 100644 --- a/taskrunner.py +++ b/taskrunner.py @@ -16,11 +16,10 @@ def timed_job1(): @sched.scheduled_job('interval', seconds=3) def timed_job2(): - f=open("number1.txt","w") - num=time.clock() - num=str(num) - f.write(num) + f=open("number.txt","r") + + num=f.readline() f.close() - print('This job is run every three seconds.') + print('This is the number in number.txt: {0}'.format(num)) sched.start()