Skip to content

Commit

Permalink
Round to 1 decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
sandewt committed Oct 15, 2020
1 parent a7115a1 commit 4632a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_content/src/Model/ArticleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function getItem($pk = null)
$db->quoteName('parent.path', 'parent_route'),
$db->quoteName('parent.alias', 'parent_alias'),
$db->quoteName('parent.language', 'parent_language'),
'ROUND(' . $db->quoteName('v.rating_sum') . ' / ' . $db->quoteName('v.rating_count') . ', 0) AS '
'ROUND(' . $db->quoteName('v.rating_sum') . ' / ' . $db->quoteName('v.rating_count') . ', 1) AS '
. $db->quoteName('rating'),
$db->quoteName('v.rating_count', 'rating_count'),
]
Expand Down

0 comments on commit 4632a82

Please sign in to comment.