mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_pwa_oca: black, isort, prettier
This commit is contained in:
committed by
sergio-teruel
parent
466781b662
commit
0d12fa42d6
@@ -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 = (
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user