Skip to content

Commit

Permalink
Show plugins with patch versions in plugin list (qgis#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix authored Jan 19, 2024
1 parent a9dabb5 commit 01467b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qgis-app/plugins/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,11 +1315,13 @@ def xml_plugins(request, qg_version=None, stable_only=None, package_name=None):
* package_name: Plugin.package_name
"""
request_version = request.GET.get("qgis", "1.8.0")
version_level = len(str(request_version).split('.')) - 1
qg_version = (
qg_version
if qg_version is not None
else vjust(
request.GET.get("qgis", "1.8.0"), fillchar="0", level=2, force_zero=True
request_version, fillchar="0", level=version_level, force_zero=True
)
)
stable_only = (
Expand Down Expand Up @@ -1431,11 +1433,13 @@ def xml_plugins_new(request, qg_version=None, stable_only=None, package_name=Non
* package_name: Plugin.package_name
"""
request_version = request.GET.get("qgis", "1.8.0")
version_level = len(str(request_version).split('.')) - 1
qg_version = (
qg_version
if qg_version is not None
else vjust(
request.GET.get("qgis", "1.8.0"), fillchar="0", level=2, force_zero=True
request_version, fillchar="0", level=version_level, force_zero=True
)
)
stable_only = (
Expand Down

0 comments on commit 01467b2

Please sign in to comment.