File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -247,18 +247,19 @@ def getTimeAgo(ts) -> Optional[str]:
247247 if not includeSelf and node ["num" ] == self .localNode .nodeNum :
248248 continue
249249
250+ mqtt_suffix = ' (MQTT)' if node .get ('viaMqtt' ) else ''
250251 presumptive_id = f"!{ node ['num' ]:08x} "
251252 row = {
252253 "N" : 0 ,
253- "User" : f"Meshtastic { presumptive_id [- 4 :]} " ,
254+ "User" : f"Meshtastic { presumptive_id [- 4 :]} " + mqtt_suffix ,
254255 "ID" : presumptive_id ,
255256 }
256257
257258 user = node .get ("user" )
258259 if user :
259260 row .update (
260261 {
261- "User" : user .get ("longName" , "N/A" ),
262+ "User" : user .get ("longName" , "N/A" ) + mqtt_suffix ,
262263 "AKA" : user .get ("shortName" , "N/A" ),
263264 "ID" : user ["id" ],
264265 "Hardware" : user .get ("hwModel" , "UNSET" ),
You can’t perform that action at this time.
0 commit comments