Fix fallback never activating
This commit is contained in:
parent
5398bd3040
commit
6ca5d33af2
1 changed files with 5 additions and 3 deletions
|
|
@ -160,8 +160,10 @@ def main():
|
||||||
rendering = RenderType.OBS_PAUSED
|
rendering = RenderType.OBS_PAUSED
|
||||||
else:
|
else:
|
||||||
# Only re-render a .star file if the cache should have expired or we hadn't rendered one yet
|
# Only re-render a .star file if the cache should have expired or we hadn't rendered one yet
|
||||||
if not CACHED or (
|
if (
|
||||||
CACHED and CACHED.last_update.date() != datetime.now().date()
|
not CACHED
|
||||||
|
or rendering != RenderType.SPLATOON
|
||||||
|
or (CACHED and CACHED.last_update.date() != datetime.now().date())
|
||||||
): # prevents overworking
|
): # prevents overworking
|
||||||
if rendering != RenderType.SPLATOON:
|
if rendering != RenderType.SPLATOON:
|
||||||
salmon_run = get_salmon_run_data()[0]
|
salmon_run = get_salmon_run_data()[0]
|
||||||
|
|
@ -187,7 +189,7 @@ def main():
|
||||||
break
|
break
|
||||||
except InvalidWindowHandle:
|
except InvalidWindowHandle:
|
||||||
continue
|
continue
|
||||||
sleep(1)
|
sleep(0.5)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue