From a1b15b86aabfed8e1efdba407a72f9cfafb98a19 Mon Sep 17 00:00:00 2001 From: death916 Date: Thu, 30 Oct 2025 23:47:06 -0700 Subject: [PATCH] catchup --- .gitignore | 0 README.rst | 0 assets/favicon.ico | Bin deathclock/__init__.py | 0 deathclock/deathclock.py | 0 feeds.txt | 0 pyproject.toml | 0 rxconfig.py | 0 utils/alarm.py | 0 utils/news.py | 0 utils/scores.py | 18 ------------------ utils/weather.py | 0 uv.lock | 0 13 files changed, 18 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 README.rst mode change 100644 => 100755 assets/favicon.ico mode change 100644 => 100755 deathclock/__init__.py mode change 100644 => 100755 deathclock/deathclock.py mode change 100644 => 100755 feeds.txt mode change 100644 => 100755 pyproject.toml mode change 100644 => 100755 rxconfig.py mode change 100644 => 100755 utils/alarm.py mode change 100644 => 100755 utils/news.py mode change 100644 => 100755 utils/scores.py mode change 100644 => 100755 utils/weather.py mode change 100644 => 100755 uv.lock diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.rst b/README.rst old mode 100644 new mode 100755 diff --git a/assets/favicon.ico b/assets/favicon.ico old mode 100644 new mode 100755 diff --git a/deathclock/__init__.py b/deathclock/__init__.py old mode 100644 new mode 100755 diff --git a/deathclock/deathclock.py b/deathclock/deathclock.py old mode 100644 new mode 100755 diff --git a/feeds.txt b/feeds.txt old mode 100644 new mode 100755 diff --git a/pyproject.toml b/pyproject.toml old mode 100644 new mode 100755 diff --git a/rxconfig.py b/rxconfig.py old mode 100644 new mode 100755 diff --git a/utils/alarm.py b/utils/alarm.py old mode 100644 new mode 100755 diff --git a/utils/news.py b/utils/news.py old mode 100644 new mode 100755 diff --git a/utils/scores.py b/utils/scores.py old mode 100644 new mode 100755 index 64f4947..b75e3dc --- a/utils/scores.py +++ b/utils/scores.py @@ -8,14 +8,6 @@ import logging # Use logging for consistency logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') class NBAScores(rx.Base): - # Declare attributes at the class level for rx.Base/Pydantic - # These aren't strictly necessary if the class is just a utility - # providing methods, but it aligns with rx.Base inheritance. - # If they were meant to hold state managed by Reflex, they'd be crucial. - # For now, we can remove them or keep them empty if needed later. - # Let's remove __init__ as it's not needed for this structure. - - # No __init__ needed async def get_scores(self): # Make async to match usage in State """Fetches NBA scores and returns them as a list of dicts.""" @@ -59,19 +51,10 @@ class NBAScores(rx.Base): return [] # Return empty list on error class mlbScores(rx.Base): - # Declare attributes at the class level if needed by rx.Base/Pydantic - # _scores: list = [] # Not strictly needed for utility methods - # _games: list = [] # Not strictly needed for utility methods - - # No __init__ needed async def get_games(self): # Make async """Fetches MLB games data.""" try: - # statsapi might be blocking, consider running in thread executor for async context - # For simplicity now, we call it directly. - # If statsapi has async methods, use those. Otherwise, wrap sync calls: - # games = await rx.call_blocking(statsapi.schedule) games = statsapi.schedule() # Assuming sync for now return games except Exception as e: @@ -103,7 +86,6 @@ class mlbScores(rx.Base): return scores_list # RETURN THE LIST # Keep the __main__ block for testing if desired, but update calls to be async if needed -# (e.g., using asyncio.run()) if __name__ == "__main__": import asyncio diff --git a/utils/weather.py b/utils/weather.py old mode 100644 new mode 100755 diff --git a/uv.lock b/uv.lock old mode 100644 new mode 100755