From b9679c6d245a1cff8af6f1e0867c3c7b7cf861f2 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 16 Jul 2024 11:14:56 +0200 Subject: [PATCH] small cleanup --- changedetectionio/processors/restock_diff/forms.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/changedetectionio/processors/restock_diff/forms.py b/changedetectionio/processors/restock_diff/forms.py index 3b89d523..bfebed61 100644 --- a/changedetectionio/processors/restock_diff/forms.py +++ b/changedetectionio/processors/restock_diff/forms.py @@ -47,11 +47,11 @@ class processor_settings_form(processor_text_json_diff_form): When OFF - Only care about restock detection
- {{ render_field(form.price_change_min, placeholder=watch['restock']['price']) }} + {{ render_field(form.price_change_min, placeholder=watch['restock'].get('price')) }} Minimum amount, only trigger a change when the price is less than this amount.
- {{ render_field(form.price_change_max, placeholder=watch['restock']['price']) }} + {{ render_field(form.price_change_max, placeholder=watch['restock'].get('price')) }} Maximum amount, only trigger a change when the price is more than this amount.
@@ -60,4 +60,5 @@ class processor_settings_form(processor_text_json_diff_form): For example, If the product is $1,000 USD originally, 2% would mean it has to change more than $20 since the first check.
- """ \ No newline at end of file + + """ \ No newline at end of file