Allows enabling/disabling questions

This commit is contained in:
AliasAlreadyTaken 2024-09-09 05:19:42 +02:00
parent 4ed8a9b657
commit 858dcd9039
2 changed files with 8 additions and 4 deletions

View File

@ -41,11 +41,11 @@ This mod targets servers, but should work in singleplayer, too.
### Chatcommands
TODO
TODO - IF we can do it.
### Modmakers
See the [datastructure](https://gitea.your-land.de/your-land/yl_survey/dev/whatdowedo.txt)
See the [datastructure](https://gitea.your-land.de/your-land/yl_survey/src/branch/master/dev/whatdowedo.txt)
A `s_id` (survey_id) is a UUID, a `q_id` is a positive integer. An `owner` is the person who is responsible for one survey, a `respondent` is a person who takes part in the survey and answers its questions. The `{survey}` table refers to the whole data structure of a survey, `{question}` refers to the data structure of a single question including its answers.

View File

@ -38,14 +38,17 @@ This is the planned data structure:
"names": true,
"anonymous": true,
"allowchanges": true,
"creationdate": 3475345,
"enddate": 3475347
"creation_date": 3475345,
"modification_date": 3475346,
"start_date": 3475347
"end_date": 3475348
},
"1": {
"id": 1,
"category": "Getting Started",
"sort": 99,
"question": "How did you find out about Minetest in general?",
"enabled" : true,
"type": [
"singlechoice",
"multiplechoice",
@ -72,6 +75,7 @@ This is the planned data structure:
"category": "Getting Started",
"sort": 2,
"question": "What do you think about the current state of the server?",
"enabled" : true,
"type": [
"singlechoice",
"multiplechoice",