reenable request processor

This commit is contained in:
2017-02-11 18:59:42 +01:00
parent 0b1c7675f0
commit e84b2f54a9
5 changed files with 16 additions and 5 deletions

View File

@@ -1,11 +1,12 @@
from billard.serializers import *
from .models import LocationData
from .models import LocationData, process_location_data
from rest_framework import viewsets
from django.shortcuts import render, redirect
from django.views import generic
from django.views.generic.detail import DetailView
from django.contrib.auth.decorators import login_required
from django.db.models import Min
from django.http import HttpResponse
class LocationDataViewSet(viewsets.ModelViewSet):
@@ -51,3 +52,8 @@ def index(request):
resp = redirect('carom_index')
resp['Location'] += '?loc={}'.format(str(loc))
return resp
def process_locationdata(request):
process_location_data()
return HttpResponse('DONE')