diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-31 16:19:56 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-31 16:19:56 +0700 |
| commit | c5bcd2528adefe9312b482b0b7dcedef370056c0 (patch) | |
| tree | e1b94521d9600e2273d245d37ba90e054f56ec50 /indoteknik_api | |
| parent | 1f491c22d519edb0df0515eba803dcd2a3436cf8 (diff) | |
| parent | 5e3e425902513c9a013f208c9e374ea322e516c3 (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_api')
| -rw-r--r-- | indoteknik_api/controllers/controller.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py index fb07708e..0592afe1 100644 --- a/indoteknik_api/controllers/controller.py +++ b/indoteknik_api/controllers/controller.py @@ -191,9 +191,9 @@ class Controller(http.Controller): image = model[field] if field in model else '' if model_name in ['product.template', 'product.product']: - version = '2' if field not in ['image_256', 'image_512', 'image_1024', 'image_1920'] else '1' + version = '1' if field in ['image_256', 'image_512', 'image_1024', 'image_1920'] else '2' ratio = kw.get('ratio', '') - image = model['image_512'] or '' + image = model['image_256'] or '' image = self.add_watermark_to_image(image, ratio, version) response_headers = [ |
