fixed current_settings
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user