config: fix camelCase

This commit is contained in:
rr- 2018-07-08 09:38:41 +02:00
parent 320c16743d
commit b6a5be74cf
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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(