From e25719afbb6c68c0e6dae6f5c5f18177132a29db Mon Sep 17 00:00:00 2001 From: danb Date: Sat, 2 Sep 2023 16:54:51 -0400 Subject: [PATCH] fixed linting issues --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index b6c1131..2b88610 100644 --- a/app.py +++ b/app.py @@ -143,7 +143,7 @@ def get_latest_block_height_rpc(rpc_url): return int(data.get('result', {}).get('sync_info', {}).get('latest_block_height', 0)) except requests.RequestException as e: return -1 # Return -1 to indicate an error - + def get_block_time_rpc(rpc_url, height): """Fetch the block header time for a given block height from the RPC endpoint.""" try: @@ -153,7 +153,7 @@ def get_block_time_rpc(rpc_url, height): return data.get('result', {}).get('block', {}).get('header', {}).get('time', "") except requests.RequestException as e: return None - + def parse_isoformat_string(date_string): date_string = re.sub(r"(\.\d{6})\d+Z", r"\1Z", date_string) date_string = date_string.replace("Z", "+00:00")