소스 검색

Merge pull request #6731 from vladmandic/state_server_start

Add server start time to state info
Vladimir Mandic 2 년 전
부모
커밋
ce9827a7c5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      modules/shared.py

+ 2 - 0
modules/shared.py

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