Skip to content

Commit 1e1a1b0

Browse files
committed
add argument back to getData
1 parent 5c5c2d1 commit 1e1a1b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: bikes/views.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ async def get_replace_data(request):
5252
return JsonResponse('No date selected', safe=False)
5353

5454
@api_view(['GET'])
55-
def getData():
55+
def getData(props):
56+
print(props)
5657
last_24_entries = Bikes.objects.order_by('-date_time')[:24]
5758

5859
serializer = BikesSerializer(last_24_entries, many=True)

0 commit comments

Comments
 (0)