Corrige a 3.4.3 (WotLK Classic + bnet) textos y lógica de expansión

- Plantillas: los textos hardcodeados "WotLK 3.3.5a" pasan a "3.4.3" (title,
  description, keywords, og:* en head.html; encabezado de la portada).
- Expansión: se centraliza en ServerSelection (helper expansion_from_gamebuild
  + propiedad .expansion) y se reconoce WoW Classic: WotLK Classic 3.4.x
  (~44832–51536, p.ej. 3.4.3=51505) además de 3.3.5a (12340), y Cataclysm
  Classic 4.4.x además de 4.3.4 (15595). Se elimina la lógica duplicada de los
  4 sitios (api, context_processor, pages x2) que solo mapeaban 12340->WotLK.

El ServerSelection de Nova WoW queda en build 51505 (3.4.3) -> etiqueta WotLK,
puerto 1119 (bnetserver).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-12 20:31:40 +00:00
parent d612b7916c
commit d1becaaf14
6 changed files with 31 additions and 12 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ def home_status_api(request):
server = ServerSelection.objects.first()
online = get_online_characters_count()
status = "Online" if (server and check_server_status(server.address, server.port)) else "Offline"
expansion = "WotLK" if (server and server.gamebuild == 12340) else "Cataclysm"
expansion = server.expansion if server else "Unknown"
return JsonResponse(
{
"server_name": server.name if server else None,
+2 -2
View File
@@ -28,7 +28,7 @@ def home_view(request):
online_characters = get_online_characters_count()
server_selection = ServerSelection.objects.first()
status = check_server_status(server_selection.address, server_selection.port) if server_selection else None
game_version = 'WotLK' if server_selection and server_selection.gamebuild == 12340 else 'Cataclysm'
game_version = server_selection.expansion if server_selection else 'Unknown'
context = {
'noticias': noticias,
@@ -54,7 +54,7 @@ def server_status_view(request):
server_selection = ServerSelection.objects.first()
if server_selection:
status = check_server_status(server_selection.address, server_selection.port)
game_version = 'WotLK' if server_selection.gamebuild == 12340 else 'Cataclysm'
game_version = server_selection.expansion
else:
status = None
game_version = None