From 929044581b436776b15992f958311147c9b25985 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 22 May 2024 15:55:30 +0200 Subject: [PATCH] tweak imports --- changedetectionio/processors/restock_diff.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/changedetectionio/processors/restock_diff.py b/changedetectionio/processors/restock_diff.py index 2fbd7a03..8e59f5be 100644 --- a/changedetectionio/processors/restock_diff.py +++ b/changedetectionio/processors/restock_diff.py @@ -1,14 +1,11 @@ from . import difference_detection_processor -from ..html_tools import xpath1_filter as xpath_filter -# xpath1 is a lot faster and is sufficient here -from ..html_tools import extract_json_as_string, has_ldjson_product_info from ..model import Restock from copy import deepcopy from loguru import logger import hashlib import re import urllib3 -import extruct + import time urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) @@ -89,7 +86,7 @@ class perform_site_check(difference_detection_processor): def run_changedetection(self, uuid, skip_when_checksum_same=True): - + import extruct # DeepCopy so we can be sure we don't accidently change anything by reference watch = deepcopy(self.datastore.data['watching'].get(uuid))