From 2aa4b580c5c1322aff7adf69ee5614f398095c44 Mon Sep 17 00:00:00 2001 From: prokopparuzek Date: Wed, 8 Oct 2025 10:54:20 +0200 Subject: [PATCH] copy gsp to clipboard, order task separately --- create.sql | 4 ++-- insertTestData.sql | 10 +++++----- templates/adminPanel.html | 4 ++-- templates/assignment.html | 15 ++++++++++++++- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/create.sql b/create.sql index f555914..89220cd 100644 --- a/create.sql +++ b/create.sql @@ -25,7 +25,7 @@ CREATE TABLE POSITIONS ( CREATE TABLE QR_CODES ( id INTEGER PRIMARY KEY, position_id INTEGER NOT NULL, - uid VARCHAR(100) NOT NULL, + uid VARCHAR(100) UNIQUE NOT NULL, FOREIGN KEY (position_id) REFERENCES positions(id) ); CREATE TABLE CIPHERS ( @@ -43,7 +43,7 @@ CREATE TABLE TASKS ( cipher_id INTEGER NOT NULL, position_id INTEGER NOT NULL, difficulty_level INTEGER NOT NULL, - order_num INTEGER UNIQUE NOT NULL, + order_num INTEGER NOT NULL, end_clue TEXT NOT NULL, FOREIGN KEY (cipher_id) REFERENCES CIPHERS(id), FOREIGN KEY (position_id) REFERENCES POSITIONS(id), diff --git a/insertTestData.sql b/insertTestData.sql index 471acc9..f80290f 100644 --- a/insertTestData.sql +++ b/insertTestData.sql @@ -31,11 +31,11 @@ INSERT INTO CIPHERS (id, assignment, solution, clue) VALUES -- Vložení úkolů INSERT INTO TASKS (id, cipher_id, position_id, difficulty_level, order_num, end_clue) VALUES - (1, 1, 1, 1, 10, 'Pokračuj k dalšímu stanovišti.'), - (2, 2, 2, 2, 20, 'Hledej QR kód u stromu.'), - (3, 3, 3, 3, 30, 'Gratulujeme, jsi v cíli!'), - (4, 1, 4, 1, 11, 'To je vše, děkujeme za účast!'); + (1, 1, 1, 1, 1, 'Pokračuj k dalšímu stanovišti.'), + (2, 2, 2, 2, 1, 'Hledej QR kód u stromu.'), + (3, 3, 3, 3, 1, 'Gratulujeme, jsi v cíli!'), + (4, 1, 4, 1, 2, 'To je vše, děkujeme za účast!'); --- Vložení admina: heslo +-- Vložení admin: heslo INSERT INTO ADMINS (id, username, password) VALUES (1, 'admin', '56b1db8133d9eb398aabd376f07bf8ab5fc584ea0b8bd6a1770200cb613ca005'); \ No newline at end of file diff --git a/templates/adminPanel.html b/templates/adminPanel.html index 7436e2a..709bf1e 100644 --- a/templates/adminPanel.html +++ b/templates/adminPanel.html @@ -8,8 +8,8 @@

Admin Panel

- Týmy - Trasy + Týmy
+ Trasy

diff --git a/templates/assignment.html b/templates/assignment.html index df9ec4c..c8ee001 100644 --- a/templates/assignment.html +++ b/templates/assignment.html @@ -34,9 +34,22 @@
{{else}} -

Souřadnice další šifry: {{.Coordinates}}

+

+ Souřadnice další šifry: + +
+ +

Nápověda k nalezení cíle: {{.FinalClue}}

{{end}} + + \ No newline at end of file