Mercurial > code > home > repos > homeauto
changeset 879:691aa1333073
handle wifi users with no clientHostname
Ignore-this: 41f4c33d9ed84b8e0417c76dd7de58d5
darcs-hash:20130529073051-312f9-706b9d9c02a1fa56fbc4cd0e4fbfa42b8d0b462e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 29 May 2013 00:30:51 -0700 |
parents | 62565b2467a8 |
children | 89e37684b362 |
files | service/tomatoWifi/tomatoWifi.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/service/tomatoWifi/tomatoWifi.py Wed May 29 00:30:37 2013 -0700 +++ b/service/tomatoWifi/tomatoWifi.py Wed May 29 00:30:51 2013 -0700 @@ -57,7 +57,7 @@ def rowDict(row): row['cls'] = "signal" if row.get('connected') else "nosignal" if 'name' not in row: - row['name'] = row['clientHostname'] + row['name'] = row.get('clientHostname', '-') if 'signal' not in row: row['signal'] = 'yes' if row['connected'] else 'no'