Browse Source

Revierto trampa

politica
Celestino Rey 1 year ago
parent
commit
b151513276
3 changed files with 1296 additions and 4 deletions
  1. +1
    -1
      JugarAlPadel/K8S/Makefile
  2. +1295
    -0
      JugarAlPadel/K8S/jugaralpadel-0.21.sql
  3. +0
    -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=registry.reymota.es
export IMG_VERSION = 0.22
export IMG_VERSION = 0.23
export IMG_NGINX_VERSION = 2.3
# limpia todo


+ 1295
- 0
JugarAlPadel/K8S/jugaralpadel-0.21.sql
File diff suppressed because it is too large
View File


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

@ -48,9 +48,6 @@ def reservar_evento(request, evento_id):
# Aquí hay que mirar si quedan más de n plazas.
# n es un numero aleatorio entre 2 y el total de plazas
# si es así, y ya hay añadir a dos participantes.
if evento.reservas.count() > 5:
especial = get_object_or_404(ReyMotaUser, email="motagarrido@yahoo.es")
Reserva.objects.create(evento=evento, usuario=especial)
messages.success(request,
f'Reserva realizada para el evento {evento.nombre}.')


Loading…
Cancel
Save