last
This commit is contained in:
@@ -221,7 +221,7 @@ def draw_weather(surface: pygame.Surface, fonts: dict, x: int, y: int) -> None:
|
|||||||
surface.blit(fonts['medium'].render('Weather loading…', True, DIM_GRAY), (x, y))
|
surface.blit(fonts['medium'].render('Weather loading…', True, DIM_GRAY), (x, y))
|
||||||
return
|
return
|
||||||
|
|
||||||
idx = int(_time.time() / 5) % len(all_data)
|
idx = int(_time.time() / 10) % len(all_data)
|
||||||
data = all_data[idx]
|
data = all_data[idx]
|
||||||
week = data.get('week', [])
|
week = data.get('week', [])
|
||||||
hours = data.get('hours', [])
|
hours = data.get('hours', [])
|
||||||
|
|||||||
Reference in New Issue
Block a user