Finished developing add config

This commit is contained in:
Donald Cheng Hong Zou
2022-03-24 02:10:52 -04:00
parent cc1dd682e8
commit 46efe2b8dd
6 changed files with 381 additions and 135 deletions
+3 -2
View File
@@ -104,9 +104,10 @@ def deletePeers(config_name, delete_keys, cur, db):
def checkJSONAllParameter(required, data):
if len(data) == 0:
print("length 0")
return False
for i in required:
if i not in list(data.keys()):
return False
return True
return True