TheCommsChannel / TC2-BBS-mesh

A BBS server for Meshtastic for posting bulletins, sending mail to users, and channel directory.
GNU General Public License v3.0
300 stars 55 forks source link

Added check for None type values when adding all nodes together #92

Open AndreasFeldt opened 1 month ago

AndreasFeldt commented 1 month ago

Issue: When fetching statistics for nodes and a node has no lastHeard value or has a null lastHeard value it becomes a None type which is not handled correctly.

Solution: Ignore all nodes with a None type lastSeen so they won't interfere with the calculation