Ignore:
Timestamp:
Aug 25, 2011, 3:09:33 PM (13 years ago)
Author:
rick
Message:

Make the 1000 entries random, else they will only fill a part of the image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/tile.py

    r9549 r9571  
    203203  })
    204204  # Limit such that high level zooms does not get the whole database
    205   metingen = Meting.objects.filter(**filter)[:1000].values_list('latitude', 'longitude', 'signaal')
     205  metingen = Meting.objects.filter(**filter).order_by('?')[:1000].values_list('latitude', 'longitude', 'signaal')
    206206
    207207  # XXX: Signal is not normalized in the database making it unknown when a
Note: See TracChangeset for help on using the changeset viewer.