Changeset 9161


Ignore:
Timestamp:
May 8, 2011, 7:35:49 PM (14 years ago)
Author:
rick
Message:

Remove ssid hack, to make sure all is inserted 'correctly'

File:
1 edited

Legend:

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

    r9140 r9161  
    2828from django.core.management.base import BaseCommand
    2929from optparse import OptionParser, make_option
    30 import settings
    31 setup_environ(settings)
    3230from gheat.models import *
    3331import datetime
     
    4442    epoch, msg_type, lat, lon, accuracy, ssid, bssid, level, frequency, capabilities, empty = row
    4543    if msg_type == "data" and lat and lon:
    46       ap, created = Accespoint.objects.get_or_create(mac=bssid, ssid="ap-WirelessLeiden-" + ssid, encryptie=capabilities)
     44      ap, created = Accespoint.objects.get_or_create(mac=bssid, ssid=ssid, encryptie=capabilities)
    4745      if created:
    4846        print "# INFO: New AccessPoint %s (%s)" % (ap.ssid, ap.mac)
Note: See TracChangeset for help on using the changeset viewer.