Convert Location to Location2025

This commit is contained in:
2025-08-30 02:20:25 +09:00
parent 48b09b08da
commit 9af1e03523
10 changed files with 92 additions and 93 deletions

View File

@ -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)