mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Using flag correctly.
This commit is contained in:
parent
d80e26caeb
commit
e0c6a2e40e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -185,7 +185,7 @@ async def periodic_downloads(app: Sanic):
|
|||
|
||||
Limited to only one process.
|
||||
"""
|
||||
if not flags.refresh_complete:
|
||||
if not flags.refresh_complete.is_set():
|
||||
logger.warning('Refusing to download without refresh')
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue