mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
15b55e7aed
commit
eb6eab4a9b
@ -259,14 +259,14 @@ class Scheduler(QObject):
|
|||||||
if self.oldest > 0:
|
if self.oldest > 0:
|
||||||
delta = timedelta(days=self.oldest)
|
delta = timedelta(days=self.oldest)
|
||||||
try:
|
try:
|
||||||
ids = self.recipe_model.db.tags_older_than(_('News'), delta)
|
ids = list(self.recipe_model.db.tags_older_than(_('News'),
|
||||||
|
delta))
|
||||||
except:
|
except:
|
||||||
# Should never happen
|
# Should never happen
|
||||||
ids = []
|
ids = []
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
if ids:
|
if ids:
|
||||||
ids = list(ids)
|
|
||||||
if ids:
|
if ids:
|
||||||
self.delete_old_news.emit(ids)
|
self.delete_old_news.emit(ids)
|
||||||
QTimer.singleShot(60 * 60 * 1000, self.oldest_check)
|
QTimer.singleShot(60 * 60 * 1000, self.oldest_check)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user