From 779318d86ba8edad5600f187b6f3fdd122201992 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Sat, 22 Jul 2023 21:04:03 -0400 Subject: [PATCH] #2031 Revert Potential Bad Change --- dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard.py b/dashboard.py index 462af131..076398c8 100644 --- a/dashboard.py +++ b/dashboard.py @@ -7,7 +7,7 @@ import time import tkinter as tk from calendar import timegm from os.path import getsize, isdir, isfile -from typing import Any, Dict, Optional +from typing import Any, Dict from config import config from EDMCLogging import get_main_logger @@ -34,7 +34,7 @@ class Dashboard(FileSystemEventHandler): def __init__(self) -> None: FileSystemEventHandler.__init__(self) # futureproofing - not need for current version of watchdog - self.session_start: Optional[int] = None + self.session_start: int = int(time.time()) self.root: tk.Tk = None # type: ignore self.currentdir: str = None # type: ignore # The actual logdir that we're monitoring self.observer: Observer = None # type: ignore