Skip to content

Commit

Permalink
Add delay notification in the approval email (#384)
Browse files Browse the repository at this point in the history
* Add delay notification in the approval email

* Improve delay notification message to 'up to 15 minutes'
  • Loading branch information
Xpirix authored May 22, 2024
1 parent 8073926 commit 5c13bb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qgis-app/plugins/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,11 @@ def version_approve(request, package_name, version):
return HttpResponseRedirect(version.get_absolute_url())
version.approved = True
version.save()
msg = _('The plugin version "%s" is now approved' % version)
msg = _(
"The plugin version '%s' is now approved. "
"Please note that there may be a delay of up to 15 minutes "
"between the approval of the plugin and its actual availability in the XML."
) % version
messages.success(request, msg, fail_silently=True)
plugin_approve_notify(version.plugin, msg, request.user)
try:
Expand Down

0 comments on commit 5c13bb1

Please sign in to comment.