diff options
Diffstat (limited to 'cdsapi/api.py')
-rw-r--r-- | cdsapi/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cdsapi/api.py b/cdsapi/api.py index eb82e34..a603716 100644 --- a/cdsapi/api.py +++ b/cdsapi/api.py @@ -350,9 +350,10 @@ class Client(object): result.download(target) return result - def service(self, name, mimic_ui=False, *args, **kwargs): + def service(self, name, *args, **kwargs): self.delete = False # Don't delete results name = "/".join(name.split(".")) + mimic_ui = kwargs.pop('mimic_ui', False) # To mimic the CDS ui the request should be populated directly with the kwargs if mimic_ui: request = kwargs |