Changeset 9123 for src/django_gheat/gheat/management
- Timestamp:
- Apr 28, 2011, 11:34:01 AM (14 years ago)
- Location:
- src/django_gheat/gheat/management/commands
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/management/commands/dataimport.py
r9092 r9123 55 55 for wnetwork in doc: 56 56 enc = wnetwork.find('SSID/encryption') 57 if enc != None: enc = 'true'58 else: enc = 'false'57 if enc != None: enc = True 58 else: enc = False 59 59 ssid = wnetwork.find('SSID/essid') 60 60 if ssid != None: ssid = ssid.text -
src/django_gheat/gheat/management/commands/import_csv.py
r9120 r9123 46 46 bssid = row[4].strip('( )') 47 47 enc = row[8] 48 enc = enc[2] 48 if enc[2] == '1': enc = True 49 else: enc = False 49 50 sig = 100 # Get's fix soon 50 51 print lat, lon, ssid, bssid, enc, sig
Note:
See TracChangeset
for help on using the changeset viewer.