From 633bb8dba77572d852f140d7d442ca817a3ee197 Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 7 Jun 2024 14:49:59 +0200 Subject: [PATCH] zero start --- code/scripts/collect_seednode_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/scripts/collect_seednode_stats.py b/code/scripts/collect_seednode_stats.py index 1d97faf..1993e19 100755 --- a/code/scripts/collect_seednode_stats.py +++ b/code/scripts/collect_seednode_stats.py @@ -367,7 +367,7 @@ def update_seednode_version_stats_row(row_data): def rectify_scores(): for commithash in VERSION_DATA: - start_time = VERSION_DATA[commithash]["start"] + start_time = 0 end_time = VERSION_DATA[commithash]["end"] logger.info(f"\n======= commithash: {commithash} =======") logger.info(f"start_time: {start_time}") @@ -473,7 +473,7 @@ def migrate_sqlite_to_pgsql(ts, rescan=False): update_seednode_version_stats_row(row_data) def import_seednode_stats(): - resp = requests.get("http://stats.kmd.io/api/source/seednode_version_stats/").json() + resp = requests.get(f"{OTHER_SERVER}/api/source/seednode_version_stats/").json() for i in resp["results"]: row_data = (i["name"], i["season"], i["version"], i["timestamp"], i["error"], i["score"])