1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Update app.py

This commit is contained in:
OniriCorpe 2024-02-19 01:34:28 +01:00 committed by GitHub
parent 018e9624c7
commit 59fecb7d1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,6 +291,7 @@ def add_to_wishlist():
new_wishlist = toml.loads(current_wishlist_rawtoml) new_wishlist = toml.loads(current_wishlist_rawtoml)
if slug in new_wishlist: if slug in new_wishlist:
url = f"https://apps.yunohost.org/wishlist?search={slug}"
return render_template( return render_template(
"wishlist_add.html", "wishlist_add.html",
locale=get_locale(), locale=get_locale(),
@ -298,8 +299,8 @@ def add_to_wishlist():
csrf_token=csrf_token, csrf_token=csrf_token,
successmsg=None, successmsg=None,
errormsg=_( errormsg=_(
"An entry with the name %(slug) already exists in the wishlist, instead, you can <a href='https://apps.yunohost.org/wishlist?search=%(slug)s'>add a star to the app to show your interest</a>.", "An entry with the name %(slug) already exists in the wishlist, instead, you can <a href='%(url)s'>add a star to the app to show your interest</a>.",
slug=slug, slug=slug, url=url,
), ),
) )