Fixed the auto daily sched generate bug.

This commit is contained in:
Justin Emter
2017-07-25 08:47:50 -07:00
parent d716176210
commit 8049ac7be8
2 changed files with 10 additions and 8 deletions

View File

@@ -33,14 +33,11 @@ class PseudoChannel():
PLEX = PlexServer(config.baseurl, config.token)
MEDIA = []
USING_GCALENDAR = config.useGoogleCalendar
GKEY = config.gkey
USING_GOOGLE_CALENDAR = False
USING_GOOGLE_CALENDAR = config.useGoogleCalendar
def __init__(self):
self.USING_GOOGLE_CALENDAR = config.useGoogleCalendar
self.db = PseudoChannelDatabase("pseudo-channel.db")
self.controller = PseudoDailyScheduleController(config.baseurl, config.token, config.plexClients)
@@ -937,9 +934,9 @@ if __name__ == '__main__':
now = datetime.datetime.now()
now_time = now.time()
now_time = now.time().replace(microsecond=0)
if now_time == time(23,59):
if now_time == time(11,59):
if pseudo_channel.USING_GOOGLE_CALENDAR: