Marker data is now created using a Dictionary stringified into JSON.
This commit is contained in:
parent
e80fb3dff9
commit
d9bc4da810
@ -210,7 +210,12 @@ func __send_form_data_thread(data:Dictionary, map_name:String, bug_position:Vect
|
||||
labels.append(label_in["id"])
|
||||
(data["labels"] as Array).append_array(labels)
|
||||
|
||||
data["body"] += "\n\n" + """{ "map_name": "%s", "bug_position": [%.4f, %.4f, %.4f], "bug_normal": [%.4f, %.4f, %.4f] }""" % [map_name, bug_position.x, bug_position.y, bug_position.z, bug_normal.x, bug_normal.y, bug_normal.z]
|
||||
var marker_data : Dictionary = {
|
||||
"map_name": map_name,
|
||||
"bug_position": [bug_position.x, bug_position.y, bug_position.z],
|
||||
"bug_normal": [bug_normal.x, bug_normal.y, bug_normal.z]
|
||||
}
|
||||
data["body"] += "\n\n" + JSON.stringify(marker_data, "", false)
|
||||
|
||||
# Post issue to Gitea
|
||||
api_url = __build_url_string("issues")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user