Skip to content

Commit 49d4522

Browse files
committed
Fix background update process
1 parent 96ea7b7 commit 49d4522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def key_for_airports(airport):
116116
# Is cache over 10 days old or non-existent?
117117
if not wf.cached_data_fresh('airports', max_age=60*60*24*10):
118118
wf.logger.info('Airport data is stale, updating in the background...')
119-
run_in_background('update', ['/usr/bin/env python', wf.workflowfile('airports.py'), '--update'])
119+
run_in_background('update', ['/usr/bin/env', 'python', wf.workflowfile('airports.py'), '--update'])
120120

121121
if is_running('update'):
122122
wf.logger.debug('Waiting for update to finish.')

0 commit comments

Comments
 (0)