From cb7b12ab9c2fea272083ee83dd5b5a27978ab542 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 27 Oct 2022 11:23:46 +0200 Subject: [PATCH] fix dupe import --- changedetectionio/model/Watch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index 0ceec776..ce4b7814 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -3,7 +3,6 @@ import logging import os import time import uuid -import uuid as uuid_builder minimum_seconds_recheck_time = int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 60)) mtable = {'seconds': 1, 'minutes': 60, 'hours': 3600, 'days': 86400, 'weeks': 86400 * 7} @@ -25,7 +24,7 @@ class model(dict): #'newest_history_key': 0, 'title': None, 'previous_md5': False, - 'uuid': str(uuid_builder.uuid4()), + 'uuid': str(uuid.uuid4()), 'headers': {}, # Extra headers to send 'body': None, 'method': 'GET', @@ -63,7 +62,7 @@ class model(dict): self.update(self.__base_config) self.__datastore_path = kw['datastore_path'] - self['uuid'] = str(uuid_builder.uuid4()) + self['uuid'] = str(uuid.uuid4()) del kw['datastore_path']