Skip to content

Commit

Permalink
zero start
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Jun 7, 2024
1 parent ab9f70a commit 633bb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/scripts/collect_seednode_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit 633bb8d

Please sign in to comment.