From 852f252d13543fdf8408573c1bfe41594d3e41ca Mon Sep 17 00:00:00 2001
From: Ozzieisaacs
Date: Sun, 28 Jun 2020 09:48:05 +0200
Subject: [PATCH] Prevent invalid variable Make text in kobo_auth_screen
consistent
---
cps/admin.py | 1 +
cps/templates/generate_kobo_auth_url.html | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cps/admin.py b/cps/admin.py
index 5698fc5a..4fe027a2 100644
--- a/cps/admin.py
+++ b/cps/admin.py
@@ -613,6 +613,7 @@ def _configuration_update_helper():
reboot_required = False
db_change = False
to_save = request.form.to_dict()
+ gdriveError = None
to_save['config_calibre_dir'] = re.sub('[\\/]metadata\.db$', '', to_save['config_calibre_dir'], flags=re.IGNORECASE)
try:
diff --git a/cps/templates/generate_kobo_auth_url.html b/cps/templates/generate_kobo_auth_url.html
index 4711dd51..fb62424c 100644
--- a/cps/templates/generate_kobo_auth_url.html
+++ b/cps/templates/generate_kobo_auth_url.html
@@ -5,7 +5,7 @@
{{_('Open the .kobo/Kobo eReader.conf file in a text editor and add (or edit):')}}
- {% if not warning %}'api_endpoint='{{kobo_auth_url}}{% else %}{{warning}}{% endif %}
+ {% if not warning %}api_endpoint={{kobo_auth_url}}{% else %}{{warning}}{% endif %}