[gnome-software/wip/hughsie/AsReview] f
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/AsReview] f
- Date: Tue, 26 Jul 2016 20:49:43 +0000 (UTC)
commit c7bee62f4f5ff3c84827525bd09a2e34eb84e7b3
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 26 21:49:35 2016 +0100
f
src/gs-plugin-loader.c | 4 ++--
src/plugins/gs-plugin-odrs.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index fd75ddf..f3c993f 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -271,9 +271,9 @@ gs_plugin_loader_review_score_sort_cb (gconstpointer a, gconstpointer b)
{
AsReview *ra = *((AsReview **) a);
AsReview *rb = *((AsReview **) b);
- if (as_review_get_score (ra) < as_review_get_score (rb))
+ if (as_review_get_priority (ra) < as_review_get_priority (rb))
return 1;
- if (as_review_get_score (ra) > as_review_get_score (rb))
+ if (as_review_get_priority (ra) > as_review_get_priority (rb))
return -1;
return 0;
}
diff --git a/src/plugins/gs-plugin-odrs.c b/src/plugins/gs-plugin-odrs.c
index d3fcd08..fdb0f0f 100644
--- a/src/plugins/gs-plugin-odrs.c
+++ b/src/plugins/gs-plugin-odrs.c
@@ -241,7 +241,7 @@ gs_plugin_odrs_parse_review_object (GsPlugin *plugin, JsonObject *item)
if (json_object_has_member (item, "rating"))
as_review_set_rating (rev, json_object_get_int_member (item, "rating"));
if (json_object_has_member (item, "score"))
- as_review_set_score (rev, json_object_get_int_member (item, "score"));
+ as_review_set_priority (rev, json_object_get_int_member (item, "score"));
if (json_object_has_member (item, "user_hash"))
as_review_set_reviewer_id (rev, json_object_get_string_member (item, "user_hash"));
if (json_object_has_member (item, "user_display"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]