From 996541b81763e54ddaaa6e3ae64e1fa068ea6445 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 13 Oct 2023 12:23:30 +0200 Subject: [PATCH] oops --- changedetectionio/__init__.py | 4 ++-- changedetectionio/model/Watch.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 65a8d8e1..adcc7539 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -713,7 +713,7 @@ def changedetection_app(config=None, datastore_o=None): available_processors=processors.available_processors(), browser_steps_config=browser_step_ui_config, emailprefix=os.getenv('NOTIFICATION_MAIL_BUTTON_PREFIX', False), - extra_title=f" - Edit - {watch.title}", + extra_title=f" - Edit - {watch.label}", form=form, has_default_notification_urls=True if len(datastore.data['settings']['application']['notification_urls']) else False, has_empty_checktime=using_default_check_time, @@ -954,7 +954,7 @@ def changedetection_app(config=None, datastore_o=None): from_version=str(from_version), to_version=str(to_version), extra_stylesheets=extra_stylesheets, - extra_title=f" - Diff - {watch.title}", + extra_title=f" - Diff - {watch.label}", extract_form=extract_form, is_html_webdriver=is_html_webdriver, last_error=watch['last_error'], diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index f07f3dfe..b7dfcd30 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -167,9 +167,7 @@ class model(dict): @property def label(self): # Used for sorting - if self['title']: - return self['title'] - return self['url'] + return self.get('title') if self.get('title') else self.get('url') @property def last_changed(self):