From db568b1e6b28e3402c3b52a62ea8eb9430be6474 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 26 Aug 2023 12:34:51 +0200 Subject: [PATCH] Added version to info plugin example name --- material/plugins/info/plugin.py | 2 +- src/plugins/info/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/plugins/info/plugin.py b/material/plugins/info/plugin.py index b0bcc71f1..41dc0373f 100644 --- a/material/plugins/info/plugin.py +++ b/material/plugins/info/plugin.py @@ -106,7 +106,7 @@ class InfoPlugin(BasePlugin[InfoConfig]): archive = BytesIO() example = input("\nPlease name your bug report (2-4 words): ") example, _ = os.path.splitext(example) - example = slugify(example, "-") + example = "-".join([present, slugify(example, "-")]) # Create self-contained example from project files: list[str] = [] diff --git a/src/plugins/info/plugin.py b/src/plugins/info/plugin.py index b0bcc71f1..41dc0373f 100644 --- a/src/plugins/info/plugin.py +++ b/src/plugins/info/plugin.py @@ -106,7 +106,7 @@ class InfoPlugin(BasePlugin[InfoConfig]): archive = BytesIO() example = input("\nPlease name your bug report (2-4 words): ") example, _ = os.path.splitext(example) - example = slugify(example, "-") + example = "-".join([present, slugify(example, "-")]) # Create self-contained example from project files: list[str] = []