mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-30 00:39:32 +00:00
Server: Add length condition for viewing check errors
This commit is contained in:
@@ -254,7 +254,8 @@ def view_battery(value):
|
||||
def view_selfcheck(value):
|
||||
if isinstance(value, list):
|
||||
if len(value)==1:
|
||||
return value[0]
|
||||
if len(value[0]) <= 8:
|
||||
return value[0]
|
||||
return "ERROR"
|
||||
return value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user