mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-10 18:15:32 +00:00
Restock & Price detection - Ability to set up a tag/group that applies to all watches with price + restock limits
This commit is contained in:
@@ -59,6 +59,11 @@ class Watch(BaseWatch):
|
||||
super().__init__(*arg, **kw)
|
||||
self['restock'] = Restock(kw['default']['restock']) if kw.get('default') and kw['default'].get('restock') else Restock()
|
||||
|
||||
self['restock_settings'] = kw['default']['restock_settings'] if kw.get('default',{}).get('restock_settings') else {
|
||||
'follow_price_changes': True,
|
||||
'in_stock_processing' : 'in_stock_only'
|
||||
} #@todo update
|
||||
|
||||
def clear_watch(self):
|
||||
super().clear_watch()
|
||||
self.update({'restock': Restock()})
|
||||
|
||||
Reference in New Issue
Block a user