mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-08-04 15:03:02 +00:00
Finished developing add config
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user