Browse Source

Cambio de versión

politica
Celestino Rey 1 year ago
parent
commit
043ada73dd
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      JugarAlPadel/K8S/Makefile
  2. +1
    -1
      JugarAlPadel/K8S/Makefile.local
  3. +3
    -3
      JugarAlPadel/gestion_reservas/eventos/views.py

+ 1
- 1
JugarAlPadel/K8S/Makefile View File

@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
#export REGISTRY=localhost:5000 #export REGISTRY=localhost:5000
export REGISTRY=registry.reymota.es export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.29
export IMG_VERSION = 0.30
export IMG_NGINX_VERSION = 2.3 export IMG_NGINX_VERSION = 2.3
# limpia todo # limpia todo


+ 1
- 1
JugarAlPadel/K8S/Makefile.local View File

@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=localhost:30500 export REGISTRY=localhost:30500
#export REGISTRY=registry.reymota.es #export REGISTRY=registry.reymota.es
export IMG_VERSION = 1.20
export IMG_VERSION = 1.21
export IMG_NGINX_VERSION = 2.4 export IMG_NGINX_VERSION = 2.4
# limpia todo # limpia todo


+ 3
- 3
JugarAlPadel/gestion_reservas/eventos/views.py View File

@ -219,14 +219,14 @@ def proximo_evento(request):
{'detail': 'El parámetro "publicado" debe ser "true", "false" o "all".'}, {'detail': 'El parámetro "publicado" debe ser "true", "false" o "all".'},
status=status.HTTP_400_BAD_REQUEST status=status.HTTP_400_BAD_REQUEST
) )
# Configura el filtro según el parámetro `publicado` # Configura el filtro según el parámetro `publicado`
if publicado_param == 'all': if publicado_param == 'all':
eventos = Evento.objects.filter(fecha__gte=timezone.now()).order_by('fecha') eventos = Evento.objects.filter(fecha__gte=timezone.now()).order_by('fecha')
else: else:
publicado = publicado_param == 'true' publicado = publicado_param == 'true'
eventos = Evento.objects.filter(publicado=publicado, fecha__gte=timezone.now()).order_by('fecha') eventos = Evento.objects.filter(publicado=publicado, fecha__gte=timezone.now()).order_by('fecha')
evento = eventos.first() evento = eventos.first()
if evento: if evento:
@ -245,7 +245,7 @@ def todos_los_eventos(request):
{'detail': 'El parámetro "publicado" debe ser "true", "false" o "all".'}, {'detail': 'El parámetro "publicado" debe ser "true", "false" o "all".'},
status=status.HTTP_400_BAD_REQUEST status=status.HTTP_400_BAD_REQUEST
) )
# Configura el filtro según el parámetro `publicado` # Configura el filtro según el parámetro `publicado`
if publicado_param == 'all': if publicado_param == 'all':
eventos = Evento.objects.all().order_by('fecha') eventos = Evento.objects.all().order_by('fecha')


Loading…
Cancel
Save