From e94f301d80db72d85ae8f3b927c78e67c81cdc43 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 26 Oct 2023 22:45:16 +0200 Subject: [PATCH] explicit wishlist message --- store/app.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/store/app.py b/store/app.py index 97bdbe12..5bf68c62 100644 --- a/store/app.py +++ b/store/app.py @@ -291,9 +291,7 @@ def add_to_wishlist(): new_branch = f"add-to-wishlist-{slug}" try: # Get the commit base for the new branch, and create it - commit_sha = repo.get_branch( - repo.default_branch - ).commit.sha + commit_sha = repo.get_branch(repo.default_branch).commit.sha repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha) except exception as e: print("... Failed to create branch ?") @@ -328,6 +326,10 @@ def add_to_wishlist(): Proposed by **{session['user']['username']}** +Website: {website} +Upstream repo: {upstream} +Description: {description} + - [ ] Confirm app is self-hostable and generally makes sense to possibly integrate in YunoHost - [ ] Confirm app's license is opensource/free software (or not-totally-free, case by case TBD) - [ ] Description describes concisely what the app is/does @@ -355,7 +357,7 @@ Proposed by **{session['user']['username']}** ) else: letters = string.ascii_lowercase + string.digits - csrf_token = ''.join(random.choice(letters) for i in range(16)) + csrf_token = "".join(random.choice(letters) for i in range(16)) session["csrf_token"] = csrf_token return render_template( "wishlist_add.html",