From 1576a88445dd7a70e25c9af018285046f54a2200 Mon Sep 17 00:00:00 2001 From: Lina Krisztian Date: Wed, 4 Sep 2024 15:42:23 +0200 Subject: [PATCH] small fixes --- r.in.wcs.worker/r.in.wcs.worker.py | 6 +++--- r.in.wcs/r.in.wcs.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/r.in.wcs.worker/r.in.wcs.worker.py b/r.in.wcs.worker/r.in.wcs.worker.py index d45b18f..5092b6b 100644 --- a/r.in.wcs.worker/r.in.wcs.worker.py +++ b/r.in.wcs.worker/r.in.wcs.worker.py @@ -85,7 +85,7 @@ # %option # % key: num_retry -# % type: int +# % type: integer # % required: no # % answer: 0 # % multiple: no @@ -155,7 +155,7 @@ def main(): wcs_url = options["url"] coverageid = options["coverageid"] area = f"{options['area']}@{old_mapset}" - num_retry_max = options["num_retry"] + num_retry_max = int(options["num_retry"]) # setting region to area grass.run_command("g.region", vector=area, res=res) @@ -219,7 +219,7 @@ def main(): grass.warning( _( f"Failed to reach the server.\nURL: {url}. With Error {e}. " - "Retry {num_retry_no_connection}/{num_retry_max} ..." + f"Retry {num_retry_no_connection}/{num_retry_max} ..." ) ) sleep(5) diff --git a/r.in.wcs/r.in.wcs.py b/r.in.wcs/r.in.wcs.py index 8f26553..78a4e21 100644 --- a/r.in.wcs/r.in.wcs.py +++ b/r.in.wcs/r.in.wcs.py @@ -75,7 +75,7 @@ # %option # % key: num_retry -# % type: int +# % type: integer # % required: no # % answer: 0 # % multiple: no