From b6a5be74cfb72844c36a8b66615116ae8e02893b Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 8 Jul 2018 09:38:41 +0200 Subject: [PATCH] config: fix camelCase --- config.yaml.dist | 4 ++-- server/szurubooru/api/info_api.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.yaml.dist b/config.yaml.dist index 578f4040..d6755189 100644 --- a/config.yaml.dist +++ b/config.yaml.dist @@ -42,10 +42,10 @@ smtp: port: # example: 25 user: # example: bot pass: # example: groovy123 - # host can be left empty, in which case it is recommended to fill contactEmail. + # host can be left empty, in which case it is recommended to fill contact_email. -contactEmail: # example: bob@example.com. Meant for manual password reset procedures +contact_email: # example: bob@example.com. Meant for manual password reset procedures # used for reverse image search diff --git a/server/szurubooru/api/info_api.py b/server/szurubooru/api/info_api.py index 8f8c9ea4..19b2be7c 100644 --- a/server/szurubooru/api/info_api.py +++ b/server/szurubooru/api/info_api.py @@ -42,7 +42,7 @@ def get_info( 'tagCategoryNameRegex': config.config['tag_category_name_regex'], 'defaultUserRank': config.config['default_rank'], 'enableSafety': config.config['enable_safety'], - 'contactEmail': config.config['contactEmail'], + 'contactEmail': config.config['contact_email'], 'canSendMails': bool(config.config['smtp']['host']), 'privileges': util.snake_case_to_lower_camel_case_keys(