added datetime tracking
This commit is contained in:
@@ -2,6 +2,7 @@ import signal
|
||||
import sys
|
||||
import os
|
||||
import logger
|
||||
import utils
|
||||
from server import Server
|
||||
|
||||
def _handle_exit(sig, frame):
|
||||
@@ -30,10 +31,13 @@ def main():
|
||||
port = _get_environment_variable("PORT")
|
||||
cache_duration = _get_environment_variable("CACHE_DURATION")
|
||||
ics_url = _get_environment_variable("ICS_URL")
|
||||
time_zone = _get_environment_variable("TIME_ZONE")
|
||||
|
||||
port_int = _parse_environment_variable("PORT", port)
|
||||
cache_duration_int = _parse_environment_variable("CACHE_DURATION", cache_duration)
|
||||
|
||||
utils.set_time_zone(time_zone)
|
||||
|
||||
server = Server(host, port_int, cache_duration_int, ics_url)
|
||||
server.serve()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user