[chronojump-server] Fixed: When a player is created the server do not created the record into rfidHistory
- From: Marcos Venteo Garcia <mventeo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Fixed: When a player is created the server do not created the record into rfidHistory
- Date: Wed, 5 Jul 2017 17:06:06 +0000 (UTC)
commit e803c19bf1a3f621c3d7bd0fb8b324286cb4a829
Author: Marcos Venteo García <mventeo gmail com>
Date: Wed Jul 5 19:05:55 2017 +0200
Fixed: When a player is created the server do not created the record into rfidHistory
chronojumpserver/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/chronojumpserver/views.py b/chronojumpserver/views.py
index 8329916..42f87d5 100755
--- a/chronojumpserver/views.py
+++ b/chronojumpserver/views.py
@@ -177,7 +177,7 @@ def add_player():
# Add the rfid into rfidHistory table
r = RFIDHistory(rfid=form.rfid.data,
- person_id=player_id)
+ person_id=player.id)
db_session.add(r)
db_session.commit()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]