[extensions-web/wip/ne0sight: 1/2] search: fixed extensions search.



commit c2a0c821929fd5e4a965d1592b9186bab191cd11
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Mon Nov 25 00:00:27 2019 +0400

    search: fixed extensions search.
    
    This was broken after py3 upgrade

 sweettooth/extensions/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 7f0d1cb..13e4ef3 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -220,7 +220,7 @@ def ajax_query_search_query(request, versions, n_per_page):
         mset = enquire.get_mset(offset, n_per_page)
         num_pages = int(ceil(float(mset.get_matches_estimated()) / n_per_page))
 
-    pks = [match.document.get_data() for match in mset]
+    pks = [match.document.get_data().decode('utf-8') for match in mset]
 
     # filter doesn't guarantee an order, so we need to get all the
     # possible models then look them up to get the ordering


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