Просмотр исходного кода

fix legacy db handling for interval stats

Jens Keim 6 лет назад
Родитель
Сommit
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
             if previous_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: ")
                     if user_input.lower() == "yes" or user_input.lower() == "y":
                         recalc_intervals = True