From 164c7f5bbbd49eb9ecab39a20fcfc9a9a34efed7 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 19 Mar 2023 23:59:06 -0500 Subject: [PATCH] fixed current_settings --- apps/daylight_adjuster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/daylight_adjuster.py b/apps/daylight_adjuster.py index 9d5caa1..0f38339 100755 --- a/apps/daylight_adjuster.py +++ b/apps/daylight_adjuster.py @@ -106,7 +106,7 @@ class DaylightAdjuster: @property def current_settings(self) -> pd.Series: - return self.df[:datetime.now().astimezone()].iloc[0].drop('elevation').astype(int).to_dict() + return self.df[:datetime.now().astimezone()].iloc[-1].drop('elevation').astype(int).to_dict() def elevation_fig(self): fig, ax = plt.subplots(figsize=(10, 7))