Convert Location to Location2025
This commit is contained in:
@ -172,7 +172,7 @@ def get_checkpoint_list(request):
|
||||
}, status=status.HTTP_404_NOT_FOUND)
|
||||
|
||||
# イベントのチェックポイント情報を取得
|
||||
checkpoints = Location2025.objects.filter(event=event).order_by('cp_number')
|
||||
checkpoints = Location2025.objects.filter(event_id=event.id).order_by('cp_number')
|
||||
|
||||
checkpoint_list = []
|
||||
for cp in checkpoints:
|
||||
@ -183,7 +183,7 @@ def get_checkpoint_list(request):
|
||||
"latitude": cp.latitude,
|
||||
"longitude": cp.longitude,
|
||||
"cp_description": cp.description,
|
||||
"is_service_cp": cp.is_service_cp
|
||||
"is_service_cp": cp.buy_point > 0 # buy_pointが0より大きい場合はサービスポイント
|
||||
}
|
||||
checkpoint_list.append(checkpoint_info)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user