update celery call

This commit is contained in:
2017-02-06 19:11:32 +01:00
parent 288abf1ad0
commit 3a48ac9c6b
3 changed files with 23 additions and 4 deletions

View File

@@ -4,5 +4,9 @@ from . import models
@shared_task
def add(x, y):
return x + y
def process_location_data():
data = models.LocationData.objects.filter(processed=False)
print(len(data))
for ld in data:
print(ld)