소스 검색

fix legacy db handling for interval stats

Jens Keim 6 년 전
부모
커밋
16ad7699ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/Core/Statistics.py

+ 1 - 1
code/Core/Statistics.py

@@ -112,7 +112,7 @@ class Statistics:
             recalc_intervals = None
             recalc_intervals = None
             if previous_intervals:
             if previous_intervals:
                 recalc_intervals = recalculate_intervals
                 recalc_intervals = recalculate_intervals
-                while recalc_intervals is None and not delete:
+                while (recalc_intervals is None and not delete) or self.stats_db.get_db_outdated():
                     user_input = input("Do you want to recalculate them as well? (y)es|(n)o|(d)elete: ")
                     user_input = input("Do you want to recalculate them as well? (y)es|(n)o|(d)elete: ")
                     if user_input.lower() == "yes" or user_input.lower() == "y":
                     if user_input.lower() == "yes" or user_input.lower() == "y":
                         recalc_intervals = True
                         recalc_intervals = True