Merge pull request #6731 from vladmandic/state_server_start

Add server start time to state info
This commit is contained in:
Vladimir Mandic 2023-01-14 16:03:29 -05:00 committed by GitHub
commit ce9827a7c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ class State:
textinfo = None textinfo = None
time_start = None time_start = None
need_restart = False need_restart = False
server_start = None
def skip(self): def skip(self):
self.skipped = True self.skipped = True
@ -241,6 +242,7 @@ class State:
state = State() state = State()
state.server_start = time.time()
artist_db = modules.artists.ArtistsDatabase(os.path.join(script_path, 'artists.csv')) artist_db = modules.artists.ArtistsDatabase(os.path.join(script_path, 'artists.csv'))