You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to modify the code by adding a get Hour function that returns and print the Hour number on the terminal when its the time of the alarm, but its not working correctly it always show that this is not an integer.
Here the code I added:
In the AlaramDB:
def get_hour(self):
alarms_table = self.__connect_alarms()
alarm_dict = alarms_table.find(hour=self.hour)
if alarm_dict is None:
return None
else:
return AlarmItem(alarm_dict['hour'])
I want to modify the code by adding a get Hour function that returns and print the Hour number on the terminal when its the time of the alarm, but its not working correctly it always show that this is not an integer.
Here the code I added:
In the AlaramDB:
def get_hour(self):
in the Alaram manager:
@staticmethod
def get_hour():
hournumb = self.alarm_mgr.get_hour(hour)
and when I add an alarm it shows me that self.alarm_mgr.get_hour(hour) is not an integer
can you please help us to fix this error as soon as possible
The text was updated successfully, but these errors were encountered: