From 5bd68bcd7b69b3744fb49eb47915f94ca21fea41 Mon Sep 17 00:00:00 2001 From: Konstantinos Tountas Date: Wed, 13 Mar 2024 13:55:06 +0000 Subject: [PATCH] Bugfix - Budget flights could not be deleted due to wrong url format --- terminalone/metadata.py | 2 +- terminalone/models/budgetflight.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terminalone/metadata.py b/terminalone/metadata.py index fb14edc..fb22de6 100644 --- a/terminalone/metadata.py +++ b/terminalone/metadata.py @@ -4,7 +4,7 @@ __author__ = 'MediaMath' __copyright__ = 'Copyright 2015, MediaMath' __license__ = 'Apache License, Version 2.0' -__version__ = '1.9.19' +__version__ = '1.9.20' __maintainer__ = 'MediaMath Developer Relations' __email__ = 'developers@mediamath.com' __status__ = 'Stable' diff --git a/terminalone/models/budgetflight.py b/terminalone/models/budgetflight.py index 05bb6fb..3f9d0fe 100644 --- a/terminalone/models/budgetflight.py +++ b/terminalone/models/budgetflight.py @@ -50,7 +50,7 @@ def _construct_url(self, addl=None): def remove(self): """Remove a flight.""" - url = self._construct_url('delete') + url = self._construct_url(addl=['delete']) self._post(self._get_service_path(), rest=url, data={'version': self.version}) for item in list(self._properties.keys()): del self._properties[item]