Ignore:
Timestamp:
Dec 23, 2011, 8:31:50 AM (13 years ago)
Author:
rick
Message:

Correct annoying typo in naming of the acces*s* point.

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

Legend:

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

    r9057 r9819  
    1919  equipment, created = Apparatuur.objects.get_or_create(antenne='itern', kaart='device')
    2020
    21   accespoint, created = Accespoint.objects.get_or_create(mac='00:11:22:33:44',
     21  accesspoint, created = Accesspoint.objects.get_or_create(mac='00:11:22:33:44',
    2222    ssid='ap-WirelessLeiden-Test', encryptie=True)
    2323
     
    2727  rondje.save()
    2828
    29   sql_insert = "INSERT INTO gheat_meting (meetrondje_id, accespoint_id, lat, lng, signaal) VALUES ";
     29  sql_insert = "INSERT INTO gheat_meting (meetrondje_id, accesspoint_id, lat, lng, signaal) VALUES ";
    3030  sql_insert_values = []
    3131  for i in range(0,count):
     
    3838    #  print "#Importing Random mesurements: %s/%s" % (i,count)
    3939    #meting = Meting.objects.create(meetrondje=rondje,
    40     #    accespoint=accespoint,latitude=latitude,
     40    #    accesspoint=accesspoint,latitude=latitude,
    4141    #    longitude=longitude,signaal=signal)
    4242    #meting.save()
    43     sql_insert_values.append("('" + "','".join(map(str,[rondje.id, accespoint.id, latitude, longitude, signal])) + "')")
     43    sql_insert_values.append("('" + "','".join(map(str,[rondje.id, accesspoint.id, latitude, longitude, signal])) + "')")
    4444
    4545  sql_insert += ','.join(sql_insert_values) + ';';
  • src/django_gheat/gheat/management/commands/import_datafile.py

    r9669 r9819  
    139139
    140140      counters = import_file(filename,meetrondje)
    141       logger.info("summary accespoints: total:%(ap_total)-6s added:%(ap_added)-6s failed:%(ap_failed)-6s ignored:%(ap_ignored)-6s" % counters)
     141      logger.info("summary accesspoints: total:%(ap_total)-6s added:%(ap_added)-6s failed:%(ap_failed)-6s ignored:%(ap_ignored)-6s" % counters)
    142142      logger.info("summary client     : total:%(client_total)-6s added:%(client_added)-6s failed:%(client_failed)-6s ignored:%(client_ignored)-6s" % counters)
    143143      logger.info("summary metingen   : total:%(meting_total)-6s added:%(meting_added)-6s failed:%(meting_failed)-6s ignored:%(meting_ignored)-6s" % counters)
Note: See TracChangeset for help on using the changeset viewer.