Skip to content

Commit

Permalink
fixed error that caused crash when feed was set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
gileadmcgee committed Oct 24, 2015
1 parent 1393479 commit be8fb42
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/watcher/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,14 @@ def resync():

### testing running feed schedule through script
def checkTime():
minute = strftime("%M", gmtime())
minute = int(minute)
time = config.feed_script_time
if minute % 60 == time:
subprocess.call(["screen","-S","feed","-p","0","-X","quit"])
subprocess.call(["screen","-dmS","feed","python3",config.path_to_feed_script])
time.sleep(60)
if config.feed_script_active == True:
minute = strftime("%M", gmtime())
minute = int(minute)
time = config.feed_script_time
if minute % 60 == time:
subprocess.call(["screen","-S","feed","-p","0","-X","quit"])
subprocess.call(["screen","-dmS","feed","python3",config.path_to_feed_script])
time.sleep(60)


replay = 0
Expand Down

0 comments on commit be8fb42

Please sign in to comment.