Ignore:
Timestamp:
Sep 5, 2011, 5:05:20 PM (13 years ago)
Author:
rick
Message:

Fix import of invalid datapoints, causing large dots in output as signal values of 100+ where imported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/dataimport/__init__.py

    r9640 r9664  
    113113  sql_values = []
    114114  for (bssid,lat,lon),signals in meting_pool.iteritems():
     115    final_signal = max(signals)
    115116    if clients.has_key(bssid):
    116117      counters['meting_ignored'] += len(signals)
     
    118119      counters['meting_failed'] += len(signals)
    119120      bssid_failed[bssid] += len(signals)
     121    elif final_signal < MIN_SIGNAL or final_signal > MAX_SIGNAL:
     122      counters['meting_failed'] += len(signals)
    120123    else:
    121124      item = str((int(meetrondje.id),mac2id[bssid],float(lat),\
Note: See TracChangeset for help on using the changeset viewer.