[gnome-software/wip/rancell/reviews: 8/33] Only download reviews once
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/reviews: 8/33] Only download reviews once
- Date: Wed, 3 Feb 2016 03:57:03 +0000 (UTC)
commit 3d9e4e6b2b63638ddbc63bd2949600f4e4f10ad6
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Dec 16 17:14:51 2015 +1300
Only download reviews once
src/plugins/gs-plugin-ubuntu-reviews.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index 1ae7c20..7f28d17 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -227,10 +227,11 @@ gs_plugin_refine (GsPlugin *plugin,
for (l = *list; l != NULL; l = l->next) {
GsApp *app = GS_APP (l->data);
- GPtrArray *sources;
+ GPtrArray *reviews, *sources;
guint i;
- if (gs_app_get_rating (app) != -1)
+ reviews = gs_app_get_reviews (app);
+ if (reviews->len > 0)
continue;
sources = gs_app_get_sources (app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]