From 6a9dbfd89816bfaedb864cc26fe42fe69edc5a37 Mon Sep 17 00:00:00 2001 From: Anne Tipka <anne.tipka@ctbto.org> Date: Sun, 23 Oct 2022 18:14:50 +0000 Subject: [PATCH] apply use of any api only if public user access is requested --- Source/Python/Mods/get_mars_data.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Python/Mods/get_mars_data.py b/Source/Python/Mods/get_mars_data.py index 12259d1..b08c8e3 100755 --- a/Source/Python/Mods/get_mars_data.py +++ b/Source/Python/Mods/get_mars_data.py @@ -147,7 +147,10 @@ def get_mars_data(c): print("start date %s " % (c.start_date)) print("end date %s " % (c.end_date)) - server = mk_server(c) + if c.public: + server = mk_server(c) + else: + server = False # if data are to be retrieved, clean up any old grib files if c.request == 0 or c.request == 2: -- GitLab