changeset 16:3a429f6cc9dc

some action filter change Ignore-this: 83eb7186353f98e633114f5086f1de9f
author drewp@bigasterisk.com
date Sat, 03 Dec 2011 19:01:18 -0800
parents 7e1036261453
children d6c2b9b87f7b
files service/bluetooth/bluetoothService.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/service/bluetooth/bluetoothService.py	Sat Dec 03 18:59:51 2011 -0800
+++ b/service/bluetooth/bluetoothService.py	Sat Dec 03 19:01:18 2011 -0800
@@ -71,7 +71,9 @@
     except UnicodeDecodeError:
         pass
     else:
-        if msg.get('name', '') and msg['name'] not in ['THINKPAD_T43']:
+        if (msg.get('name', '') and
+            msg['name'] not in ['THINKPAD_T43'] and
+            msg['action'] == 'arrive'):
             hub.post("visitorNet", payload=js) # sans datetime
     msg['created'] = datetime.datetime.now(tz.gettz('UTC'))
     mongo.insert(msg, safe=True)