Ignore:
Timestamp:
Apr 28, 2011, 11:34:01 AM (14 years ago)
Author:
dennisw
Message:

Fixed encryption, problem with duplicate accespoints solved somehow (local problem I guess).

Location:
src/django_gheat/gheat/management/commands
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/management/commands/dataimport.py

    r9092 r9123  
    5555  for wnetwork in doc:
    5656    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
    5959    ssid = wnetwork.find('SSID/essid')
    6060    if ssid != None: ssid = ssid.text
  • src/django_gheat/gheat/management/commands/import_csv.py

    r9120 r9123  
    4646    bssid = row[4].strip('( )')
    4747    enc = row[8]
    48     enc = enc[2]
     48    if enc[2] == '1': enc = True
     49    else: enc = False
    4950    sig = 100 # Get's fix soon
    5051    print lat, lon, ssid, bssid, enc, sig
Note: See TracChangeset for help on using the changeset viewer.