Skip to content

Commit

Permalink
chore: export the extended description after the normal description t…
Browse files Browse the repository at this point in the history
…o app.json
  • Loading branch information
onerandomusername committed Nov 16, 2021
1 parent 258fa1b commit bfe641c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"env": {
"MODMAIL_BOT_TOKEN": {
"description": "Discord bot token. Required to log in to discord.",
"description": "Discord bot token. Required to log in to discord.\nThis is obtainable from https://discord.com/developers/applications",
"required": true
},
"MODMAIL_BOT_PREFIX": {
Expand Down
6 changes: 4 additions & 2 deletions scripts/export_new_config_to_default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,13 @@ def get_env_vars(klass: type, env_prefix: str = None) -> typing.Dict[str, Metada
or meta[METADATA_TABLE].export_to_env_template
or meta.get("required", False)
):

description = (
f"{meta[METADATA_TABLE].description}\n{meta[METADATA_TABLE].extended_description or ''}"
).strip()
options = defaultdict(
str,
{
"description": meta[METADATA_TABLE].description,
"description": description,
"required": meta[METADATA_TABLE].app_json_required or meta.get("required", False),
},
)
Expand Down

0 comments on commit bfe641c

Please sign in to comment.