[gnome-software/gnome-3-20] odrs: Match REQUIRE_RATING as well



commit c84fd43bd146d19a95c50df44c8439cd17cd33bc
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 11 09:47:26 2016 +0100

    odrs: Match REQUIRE_RATING as well

 src/plugins/gs-plugin-odrs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-odrs.c b/src/plugins/gs-plugin-odrs.c
index 7b07bb3..f78d515 100644
--- a/src/plugins/gs-plugin-odrs.c
+++ b/src/plugins/gs-plugin-odrs.c
@@ -675,7 +675,8 @@ gs_plugin_refine_app (GsPlugin *plugin,
        }
 
        /* add ratings if possible */
-       if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_REVIEW_RATINGS) {
+       if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_REVIEW_RATINGS ||
+           flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING) {
                if (gs_app_get_review_ratings(app) != NULL)
                        return TRUE;
                if (!gs_plugin_refine_ratings (plugin, app,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]