Bug report #8645
Only four stars are shown on the plugin list page
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | - | ||
Pull Request or Patch supplied: | No |
Description
Plugins can be rated with up to five stars and on the individual plugin page, up to five stars are displayed. In the plugin list on the other hand, only a maximum of four stars is visible.
History
#1 Updated by Alessandro Pasotti over 11 years ago
It is because there are no plugins with score = 5.0000... (I don't remember how many significamt digits in a float)
But you're right, the algorithm could be better.
#2 Updated by Anita Graser over 11 years ago
Can you change it to display five stars if the score is >= 4.5?
#3 Updated by Alessandro Pasotti over 11 years ago
Probably yes, but I don't have time to do it now, sorry.
Also, the new plugin website I've developed during the HF has lot small fixes and the same look & feel of the new QGIS main website, unfortunately we didn't have enough time to push it online.
Every bug fix will have to wait until someone will find time to upgrade the wirtualenv on the server and push the new plugin site online.
If somebody wants to fix the rating issue, please look here:
https://github.com/qgis/QGIS-Django/blob/master/qgis-app/plugins/templates/plugins/plugin_list.html#L98
and here:
https://github.com/qgis/QGIS-Django/blob/master/qgis-app/plugins/models.py#L26
#4 Updated by Akbar Gumbira almost 9 years ago
See here the PR for this issue: https://github.com/qgis/QGIS-Django/pull/16