diff -r 349308e84eeb -r 772103b14c18 eric6/PluginManager/PluginManager.py --- a/eric6/PluginManager/PluginManager.py Mon Apr 12 19:05:23 2021 +0200 +++ b/eric6/PluginManager/PluginManager.py Mon Apr 12 19:21:40 2021 +0200 @@ -1255,18 +1255,13 @@ if lastModified.isValid() and lastModified.date().isValid(): lastModifiedDate = lastModified.date() now = QDate.currentDate() - if period == 1 and lastModifiedDate.day() == now.day(): - # daily - return - elif period == 2 and lastModifiedDate.daysTo(now) < 7: - # weekly - return - elif ( - period == 3 and - (lastModifiedDate.daysTo(now) < - lastModifiedDate.daysInMonth()) + if ( + (period == 1 and lastModifiedDate.day() == now.day()) or + (period == 2 and lastModifiedDate.daysTo(now) < 7) or + (period == 3 and (lastModifiedDate.daysTo(now) < + lastModifiedDate.daysInMonth())) ): - # monthly + # daily, weekly, monthly return self.__updateAvailable = False