Commit Graph

412 Commits

Author SHA1 Message Date
Thomas Rubini
1220e570fb
Generate /admin/questions using flask template 2023-03-20 15:51:37 +01:00
Thomas Rubini
30d903db38
fix tab 2023-03-20 14:17:54 +01:00
Thomas Rubini
320b733bfd
Merge pull request #107 from ThomasRubini/startGame 2023-03-19 12:23:14 +01:00
Thomas Rubini
05295f30fb
query all places at once 2023-03-19 12:22:19 +01:00
Thomas Rubini
8041be1fea
query all npcs at once 2023-03-19 12:18:16 +01:00
Thomas Rubini
04fb04c7df
Merge pull request #106 from ThomasRubini/fix 2023-03-19 12:08:50 +01:00
Thomas Rubini
7a2a23729d
refactor error message for npc reaction 2023-03-19 12:08:26 +01:00
Thomas Rubini
5745c30147
Merge pull request #105 from ThomasRubini/reactions 2023-03-19 12:07:40 +01:00
Thomas Rubini
4438e8f2ff
remove code 500 on invalid npc 2023-03-19 12:06:05 +01:00
Thomas Rubini
c2aeede354
make backend use database to return images 2023-03-19 12:05:50 +01:00
Thomas Rubini
4d7ac75ecc
move reaction files 2023-03-19 11:12:04 +01:00
Thomas Rubini
066943d8a8
change reaction import system to read from a directory + add default npc image 2023-03-19 11:11:52 +01:00
Thomas Rubini
d97b100b96
import npc reaction images 2023-03-19 10:57:51 +01:00
Thomas Rubini
23dc6962d8
add npc reaction images to database 2023-03-19 10:43:27 +01:00
Thomas Rubini
3aae90aab8
add autoincrement to some primary keys 2023-03-19 10:29:13 +01:00
Thomas Rubini
9fcd7c159a
add input file argument for import script 2023-03-19 09:50:48 +01:00
Thomas Rubini
2d0c797b84
Merge pull request #104 from ThomasRubini/places 2023-03-18 23:09:51 +01:00
Thomas Rubini
98a4635a12
update places view and connect with backend 2023-03-18 23:09:24 +01:00
Thomas Rubini
d90987ca39
Merge pull request #103 from ThomasRubini/trait_delete 2023-03-18 19:09:54 +01:00
Thomas Rubini
12eb1afa84
update backend to delete traits in db 2023-03-18 19:03:39 +01:00
Thomas Rubini
8451100415
add button to delete trait 2023-03-18 19:03:31 +01:00
Thomas Rubini
a945eb9f6b
Merge pull request #101 from ThomasRubini/traits 2023-03-18 18:45:53 +01:00
Thomas Rubini
e0ae64cba5
Merge pull request #102 from ThomasRubini/bulk_import_cleanup 2023-03-18 18:44:45 +01:00
Thomas Rubini
774f8afecf
remove import.py 2023-03-18 18:43:33 +01:00
Thomas Rubini
f711e4ec2c
moves bulk data files 2023-03-18 18:43:21 +01:00
Thomas Rubini
0a130fe955
connect traits view with backend 2023-03-18 18:41:38 +01:00
Thomas Rubini
ab0b6efccc
fix id not being reset on new traits 2023-03-18 18:41:38 +01:00
Thomas Rubini
f73f0801d7
add "Add new" button for traits 2023-03-18 18:41:38 +01:00
Thomas Rubini
969ef67c08
add traits back office view 2023-03-18 18:41:38 +01:00
Thomas Rubini
5cbfc79809
Merge pull request #100 from ThomasRubini/lid 2023-03-18 18:41:19 +01:00
Thomas Rubini
13a9425081
Merge pull request #91 from ThomasRubini/bulkDataManagement 2023-03-18 18:41:11 +01:00
Thomas Rubini
b0b25b82cf
replace faulty TEXT_ID occurences with LID 2023-03-18 18:40:35 +01:00
Thomas Rubini
d5d18ad307
Merge branch 'main' of gitschool:ThomasRubini/SAE-A2-TruthInquiry 2023-03-18 16:18:29 +01:00
Thomas Rubini
2e1e69584f
add back office places view 2023-03-18 16:09:42 +01:00
Thomas Rubini
5ac435b3f3
remove get_or_empty() function 2023-03-18 16:03:48 +01:00
Thomas Rubini
d329be91fd
Merge pull request #99 from ThomasRubini/admin_index 2023-03-18 15:58:04 +01:00
Thomas Rubini
b9abe99673
add npc list to admin index 2023-03-18 15:57:36 +01:00
Thomas Rubini
d39de3eecb
Merge pull request #98 from ThomasRubini/npc 2023-03-18 15:49:29 +01:00
Thomas Rubini
92c6d089e7
add back office npc view 2023-03-18 15:48:58 +01:00
Thomas Rubini
25851dc8a3
add backrefs to models 2023-03-18 15:48:58 +01:00
Thomas Rubini
d50edf9b63
add option for new npc 2023-03-18 15:48:58 +01:00
Thomas Rubini
bf5c2fcc68
Merge pull request #97 from ThomasRubini/set_questions 2023-03-18 15:48:49 +01:00
Thomas Rubini
6c07221b7d
Finish set_questions endpoint 2023-03-16 14:39:51 +01:00
Thomas Rubini
2968997381
Merge pull request #96 from ThomasRubini/model_fixup 2023-03-15 16:09:14 +01:00
51edb750ce fixed code to use new model 2023-03-15 15:06:44 +01:00
666bb079db adapted code to new models 2023-03-14 19:11:07 +01:00
278ed41630 fixed code to use new model 2023-03-14 17:56:20 +01:00
Thomas Rubini
709d4ced32
Merge pull request #94 from ThomasRubini/back_office 2023-03-12 12:58:44 +01:00
Thomas Rubini
04be0b641e
add setQuestions endpoint and access it from js 2023-03-12 12:57:42 +01:00
Thomas Rubini
25eeae34ba
allow makeAPIRequest() to handle JSON requests 2023-03-12 12:57:42 +01:00