Mercurial > kallithea
changeset 8001:a7427a53cccc
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 23 Nov 2019 23:16:20 +0100 |
parents | 096ce7327aad |
children | 42d1f33f2b87 |
files | kallithea/controllers/home.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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,