Skip to content

Commit

Permalink
fix background update
Browse files Browse the repository at this point in the history
  • Loading branch information
schwark committed Aug 13, 2022
1 parent 895652d commit deb954d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from workflow.workflow import MATCH_ATOM, MATCH_STARTSWITH, MATCH_SUBSTRING, MATCH_ALL, MATCH_INITIALS, MATCH_CAPITALS, MATCH_INITIALS_STARTSWITH, MATCH_INITIALS_CONTAIN
from workflow import Workflow3, ICON_WEB, ICON_WARNING, ICON_BURN, ICON_ERROR, ICON_SWITCH, ICON_HOME, ICON_COLOR, ICON_INFO, ICON_SYNC, web, PasswordNotFound
from workflow.background import run_in_background, is_running
import os

log = None

Expand Down Expand Up @@ -397,7 +398,7 @@ def main(wf):
# Is cache over 1 hour old or non-existent?
if not wf.cached_data_fresh('device', freq):
run_in_background('update',
['/usr/bin/python',
[os.environ['PYTHON2_PATH']+'/python2',
wf.workflowfile('command.py'),
'--update'])

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.7
1.1.8

0 comments on commit deb954d

Please sign in to comment.