Skip to content

Commit

Permalink
[ENH] summer mode response update
Browse files Browse the repository at this point in the history
  • Loading branch information
dragarthPl committed May 29, 2024
1 parent 1ce522d commit c8e2e1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/summer_mode/summer_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ def from_mode_string(cls, mode: str) -> 'SummerMode':

def get_mode(self):
if self.__mode == 1:
return self.SUMMER
return {
"summer_mode": self.SUMMER
}
elif self.__mode == 0:
return self.WINTER
return {
"summer_mode": self.WINTER
}
else:
raise Exception("Unknown summer mode")

0 comments on commit c8e2e1b

Please sign in to comment.