Changeset - a7427a53cccc
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-11-23 23:16:20
mads@kiilerich.com
Grafted from: 56246cc8e0e9
home: don't send _changeset_cache in repo_switcher_data result

It is unused, and it is problematic to serialize bytes in json ... and it is
especially obvious in py3.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/controllers/home.py
Show inline comments
 
@@ -93,6 +93,10 @@ class HomeController(BaseController):
 
                    ],
 
                   }]
 

	
 
            for res_dict in res:
 
                for child in (res_dict['children']):
 
                    child['obj'].pop('_changeset_cache', None)  # bytes cannot be encoded in json ... but this value isn't relevant on client side at all ...
 

	
 
            data = {
 
                'more': False,
 
                'results': res,
0 comments (0 inline, 0 general)