mirror of
https://github.com/meshtastic/python.git
synced 2026-01-15 11:18:05 -05:00
Fix count vs len on a list (https://github.com/meshtastic/python/pull/736#discussion_r1960099918)
This commit is contained in:
@@ -292,7 +292,7 @@ class MeshInterface: # pylint: disable=R0902
|
||||
return None
|
||||
return value
|
||||
|
||||
if showFields is None or showFields.count == 0:
|
||||
if showFields is None or len(showFields) == 0:
|
||||
# The default set of fields to show (e.g., the status quo)
|
||||
showFields = ["N", "user.longName", "user.id", "user.shortName", "user.hwModel", "user.publicKey",
|
||||
"user.role", "position.latitude", "position.longitude", "position.altitude",
|
||||
|
||||
Reference in New Issue
Block a user