Bläddra i källkod

fix legacy db handling for interval stats

Jens Keim 6 år sedan
förälder
incheckning
16ad7699ef
1 ändrade filer med 1 tillägg och 1 borttagningar
  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