def print_categories(categories, server_type, maps_set):
for c in categories:
maps = Map.objects.filter(server_type=server_type, categories=c).order_by(Lower('name'))
# TODO: at some point this should not be neccessary anymore
if maps and not maps_set.issuperset(maps):
print()
print('??? ' + c.name.upper() + ' ???')
for m in maps:
if m not in maps_set:
maps_set.add(m)
print_map(m)
评论列表
文章目录