# HG changeset patch # User Mads Kiilerich # Date 1574547380 -3600 # Node ID a7427a53cccc486b1cb1b8f99c3cae0e949606d2 # Parent 096ce7327aad51088f0da344a55bdf3dd83e5609 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. diff -r 096ce7327aad -r a7427a53cccc kallithea/controllers/home.py --- a/kallithea/controllers/home.py Sat Nov 23 15:55:40 2019 +0100 +++ b/kallithea/controllers/home.py Sat Nov 23 23:16:20 2019 +0100 @@ -93,6 +93,10 @@ ], }] + 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,