fixed current_settings

This commit is contained in:
John Lancaster
2023-03-19 23:59:06 -05:00
parent b4624fa97a
commit 164c7f5bbb

View File

@@ -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))