Sat, 22 Jul 2023 14:26:35 +0200
Corrected the update availability checks (UserInterface and PluginManager) for period 'daily'.
src/eric7/PluginManager/PluginManager.py | file | annotate | diff | comparison | revisions | |
src/eric7/UI/UserInterface.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/PluginManager/PluginManager.py Fri Jul 21 15:35:23 2023 +0200 +++ b/src/eric7/PluginManager/PluginManager.py Sat Jul 22 14:26:35 2023 +0200 @@ -1262,7 +1262,7 @@ now = datetime.datetime.now() delta = now - lastModified if ( - (period == 1 and lastModified.date().day == now.date().day) + (period == 1 and delta.days < 1) or (period == 2 and delta.days < 7) or (period == 3 and delta.days < 30) ):
--- a/src/eric7/UI/UserInterface.py Fri Jul 21 15:35:23 2023 +0200 +++ b/src/eric7/UI/UserInterface.py Sat Jul 22 14:26:35 2023 +0200 @@ -8264,7 +8264,7 @@ if lastCheck.isValid(): now = QDate.currentDate() if ( - (period == 2 and lastCheck.day() == now.day()) + (period == 2 and lastCheck.daysTo(now) < 1) or (period == 3 and lastCheck.daysTo(now) < 7) or ( period == 4