From ba7c9bca853224ff1bba12ae919257345eff10c2 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Mon, 27 Dec 2021 11:55:13 +0100 Subject: [PATCH] _xml_ratings(): minor simplification --- picard/webservice/api_helpers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/picard/webservice/api_helpers.py b/picard/webservice/api_helpers.py index dc8f00e21..d31f9b710 100644 --- a/picard/webservice/api_helpers.py +++ b/picard/webservice/api_helpers.py @@ -205,8 +205,10 @@ class MBAPIHelper(APIHelper): @staticmethod def _xml_ratings(ratings): - recordings = (''.join(['%s' % - (i[1], j*20) for i, j in ratings.items() if i[0] == 'recording'])) + recordings = ''.join( + '%s' % + (i[1], j*20) for i, j in ratings.items() if i[0] == 'recording' + ) return _wrap_xml_metadata('%s' % recordings)