From af0cca2f8c936cdde98f0db0d03ea80ae416e8ce Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 20 May 2017 22:50:40 +0300 Subject: [PATCH] Display full category names on upload/edit category lists --- nyaa/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nyaa/routes.py b/nyaa/routes.py index f41f591..23a68d2 100644 --- a/nyaa/routes.py +++ b/nyaa/routes.py @@ -555,7 +555,8 @@ def _create_upload_category_choices(): cat_names = id_map[key] is_main_cat = key.endswith('_0') - cat_name = is_main_cat and cat_names[0] or (' - ' + cat_names[1]) + # cat_name = is_main_cat and cat_names[0] or (' - ' + cat_names[1]) + cat_name = ' - '.join(cat_names) choices.append((key, cat_name, is_main_cat)) return choices