_set_data("total_peers", domain, len(peers))
# DEBUG: print("DEBUG: EXIT!")
-def set_nodeinfo_url(domain: str, url: list):
+def set_nodeinfo_url(domain: str, url: str):
# DEBUG: print(f"DEBUG: domain='{domain}',url='{url}' - CALLED!")
if not isinstance(domain, str):
raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
_set_data("nodeinfo_url", domain, url)
# DEBUG: print("DEBUG: EXIT!")
-def set_detection_mode(domain: str, url: list):
- # DEBUG: print(f"DEBUG: domain='{domain}',url='{url}' - CALLED!")
- if not isinstance(domain, str):
- raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
- elif domain == "":
- raise ValueError("Parameter 'domain' is empty")
- elif not isinstance(url, str):
- raise ValueError("Parameter url[]='{type(url)}' is not 'list'")
- elif url == "":
- raise ValueError("Parameter 'url' is empty")
-
- # Set timestamp
- _set_data("detection_mode", domain, url)
- # DEBUG: print("DEBUG: EXIT!")
-
-def set_detection_mode(domain: str, url: list):
- # DEBUG: print(f"DEBUG: domain='{domain}',url='{url}' - CALLED!")
- if not isinstance(domain, str):
- raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
- elif domain == "":
- raise ValueError("Parameter 'domain' is empty")
- elif not isinstance(url, str):
- raise ValueError("Parameter url[]='{type(url)}' is not 'list'")
- elif url == "":
- raise ValueError("Parameter 'url' is empty")
-
- # Set timestamp
- _set_data("detection_mode", domain, url)
- # DEBUG: print("DEBUG: EXIT!")
-
-def set_detection_mode(domain: str, mode: list):
+def set_detection_mode(domain: str, mode: str):
# DEBUG: print(f"DEBUG: domain='{domain}',mode='{mode}' - CALLED!")
if not isinstance(domain, str):
raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")