From da7f613e9f949940f61f0fc0a82f463f517a39e5 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 19 Sep 2022 17:34:56 +0200 Subject: [PATCH] tidyups --- changedetectionio/__init__.py | 2 +- changedetectionio/update_worker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index fcb5d6cd..31b65657 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -1407,7 +1407,7 @@ def changedetection_app(config=None, datastore_o=None): return redirect(url_for('index')) - @app.route("/api/r-url", methods=['GET']) + @app.route("/api/share-url", methods=['GET']) @login_required def form_share_put_watch(): """Given a watch UUID, upload the info and return a share-link diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index 00e7d317..f31941c5 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -265,7 +265,7 @@ class update_worker(threading.Thread): # Different exceptions mean that we may or may not want to bump the snapshot, trigger notifications etc if process_changedetection_results: try: - watch = self.datastore.data['watching'][uuid] + watch = self.datastore.data['watching'].get(uuid) # For the FIRST time we check a site, or a change detected, save the snapshot. if changed_detected or not watch['last_checked']: