Import speed improvements, and adding an import URL batch size of 5,000 to stop accidental CPU overload (#549)

This commit is contained in:
dgtlmoon
2022-04-19 23:15:32 +02:00
committed by GitHub
parent 6c3c5dc28a
commit 2a9fb12451
4 changed files with 20 additions and 12 deletions

View File

@@ -13,7 +13,6 @@ from changedetectionio.notification import (
class model(dict):
def __init__(self, *arg, **kw):
super(model, self).__init__(*arg, **kw)
self.update({
'url': None,
'tag': None,
@@ -45,6 +44,9 @@ class model(dict):
# Should be all None by default, so we use the system default in this case.
'minutes_between_check': None
})
# goes at the end so we update the default object with the initialiser
super(model, self).__init__(*arg, **kw)
@property
def has_empty_checktime(self):