mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
fix validation
This commit is contained in:
parent
df8e98366b
commit
4d816ae87c
1 changed files with 1 additions and 1 deletions
|
|
@ -668,7 +668,7 @@ class ReticulumMeshChat:
|
|||
missing_fields = []
|
||||
required_subinterface_fields = ["name", "frequency", "bandwidth", "txpower", "spreadingfactor", "codingrate", "vport"]
|
||||
for field in required_subinterface_fields:
|
||||
if field not in sub_interface or sub_interface.get(field) == "":
|
||||
if field not in sub_interface or sub_interface.get(field) is None or sub_interface.get(field) == "":
|
||||
missing_fields.append(field)
|
||||
if missing_fields:
|
||||
return web.json_response({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue