forked from 0x2620/pandora
direct lookup
This commit is contained in:
parent
197c5ca9ff
commit
d6d1a08e40
1 changed files with 2 additions and 1 deletions
|
@ -109,8 +109,9 @@ def getSequence(request):
|
||||||
data = json.loads(request.POST['data'])
|
data = json.loads(request.POST['data'])
|
||||||
response = json_response()
|
response = json_response()
|
||||||
position = float('%0.03f' % data['position'])
|
position = float('%0.03f' % data['position'])
|
||||||
|
i = Item.objects.get(itemId=data['id'])
|
||||||
qs = models.Sequence.objects.filter(
|
qs = models.Sequence.objects.filter(
|
||||||
sort__item__itemId=data['id'],
|
sort_id=i.sort.pk,
|
||||||
mode=models.Sequence.MODE[data['mode']],
|
mode=models.Sequence.MODE[data['mode']],
|
||||||
start__lte=position,
|
start__lte=position,
|
||||||
end__gt=position
|
end__gt=position
|
||||||
|
|
Loading…
Reference in a new issue