Skip to content

Commit

Permalink
updated the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
covertcorvid committed Dec 11, 2023
1 parent 157350e commit 662cf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsv13/code/controllers/subsystem/map_vote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

/* From the feedback table, for any entry with the key 'nsv_endings', get the round ID and extract the type of ending from the JSON data.
This is a text string. Current values (2023/02/17) are "succeeded", "evacuated", and "failed". Call this result "feedback".
(SELECT round_id, CAST(JSON_EXTRACT(JSON, '$.data') AS CHAR) AS ending FROM ss13_feedback WHERE key_name='nsv_endings') AS feedback
(SELECT round_id, CAST(JSON_EXTRACT(JSON, '$.data[0]') AS CHAR) AS ending FROM ss13_feedback WHERE key_name='nsv_endings') AS feedback
Take the round ID and compare it with the data from the round table to get the map name. This gives us one row per round where we
recorded the ending with the map name and the ending type. The ending type string includes quotation marks.
Expand Down

0 comments on commit 662cf4e

Please sign in to comment.