From 252b0e8fd134f1111a4fb5377bd7c1203facdee0 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 12 May 2020 22:10:39 +0200 Subject: [PATCH] Don't use NormalizedString for storing paths Long NormalizedString values get serialized with line breaks and spaces, which break paths when restarting. Plus, it trims consecutive spaces, which also breaks paths. --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index fc26b53..59ce6e3 100644 --- a/config.py +++ b/config.py @@ -31,12 +31,12 @@ def configure(advanced): # CONFIGURATION # file locations for database and question conf.registerChannelValue(TriviaTime.admin, 'db', - registry.NormalizedString("""plugins/TriviaTime/storage/db/trivia.db""", + registry.String("""plugins/TriviaTime/storage/db/trivia.db""", """Location of sqlite database file""") ) conf.registerChannelValue(TriviaTime.admin, 'file', - registry.NormalizedString("""plugins/TriviaTime/storage/questions""", + registry.String("""plugins/TriviaTime/storage/questions""", """Location of question file. Reload the plugin if changed.""") )