From 668ba5721107dcb565865647a31bf9bab508446b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 20 May 2023 16:30:40 +0200 Subject: [PATCH] Continued: - it is more the originator ... --- blocks_empty.db | Bin 28672 -> 28672 bytes fba.py | 14 +++++++------- fetch_instances.py | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/blocks_empty.db b/blocks_empty.db index 14ad7e8cb364df4f54a3ac78d54ca1805389dbfb..457b338488c069c6b7d032bd44fbf7f8a64f55ff 100644 GIT binary patch delta 89 zcmZp8z}WDBae}nq3kC)Tb|_{9(sC1Zj3r+%=y^}%<=0_g 0: print("WARNING: Bad domain name:", domain) raise - elif origin is not None and origin.find("@") > 0: - print("WARNING: Bad origin name:", origin) + elif originator is not None and originator.find("@") > 0: + print("WARNING: Bad originator name:", originator) raise - print("--- Adding new instance:", domain, origin) + print("--- Adding new instance:", domain, originator) try: c.execute( - "INSERT INTO instances (domain,origin,hash,software) VALUES (?, ?, ?, ?)", + "INSERT INTO instances (domain,originator,hash,software) VALUES (?, ?, ?, ?)", ( domain, - origin, + originator, get_hash(domain), determine_software(domain) ), diff --git a/fetch_instances.py b/fetch_instances.py index 9237fc1..e4a9f5a 100644 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -4,8 +4,8 @@ import json import time import fba -def fetch_instances(domain: str, origin: str): - # NOISY-DEBUG: print("DEBUG: Fetching instances for domain:", domain, origin) +def fetch_instances(domain: str, originator: str): + # NOISY-DEBUG: print("DEBUG: Fetching instances for domain:", domain, originator) peerlist = fba.get_peers(domain) if (peerlist is None): @@ -16,8 +16,8 @@ def fetch_instances(domain: str, origin: str): ) if fba.c.fetchone() == None: - # NOISY-DEBUG: print("DEBUG: Adding new domain:", domain, origin) - fba.add_instance(domain, origin) + # NOISY-DEBUG: print("DEBUG: Adding new domain:", domain, originator) + fba.add_instance(domain, originator) fba.conn.commit() return -- 2.39.5