def make_app(build_dir: str = None, demo_db: Optional[DemoDatabase] = None) -> Sanic:
app = Sanic(__name__) // pylint: disable=invalid-name
start_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
if build_dir is None:
// Need path to static assets to be relative to this file.
dir_path = os.path.dirname(os.path.realpath(__file__))
After Change
def make_app(build_dir: str = None, demo_db: Optional[DemoDatabase] = None) -> Sanic:
app = Sanic(__name__) // pylint: disable=invalid-name
start_time = datetime.now(pytz.utc)
start_time_str = start_time.strftime("%Y-%m-%d %H:%M:%S %Z")
if build_dir is None:
// Need path to static assets to be relative to this file.