3
0
Fork 0

[IMP] web_pwa_oca: black, isort, prettier

16.0
Olga Marco 2022-01-07 10:56:37 +01:00 committed by Michele
parent fc3ab59acb
commit 7bf6e89d9a
No known key found for this signature in database
GPG Key ID: 41B96132B0596B70
5 changed files with 21 additions and 18 deletions

View File

@ -68,7 +68,10 @@ class ResConfigSettings(models.TransientModel):
resized_image.save(icon_bytes_output, format=extension.lstrip(".").upper())
icon = base64.b64encode(icon_bytes_output.getvalue())
url = "{}{}x{}{}".format(
self._pwa_icon_url_base, str(size[0]), str(size[1]), extension,
self._pwa_icon_url_base,
str(size[0]),
str(size[1]),
extension,
)
# Retreive existing attachment
existing_attachment = (

View File

@ -35,7 +35,7 @@
when: function (tasks) {
return Promise.all(tasks instanceof Array ? tasks : [tasks]).then(
results => {
(results) => {
return results.length === 1 ? results[0] : results;
}
);