Преглед на файлове

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
             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