Debug
This commit is contained in:
@@ -212,16 +212,10 @@ function political_compass()
|
||||
end
|
||||
|
||||
function groups_add_post()
|
||||
@info rawpayload()
|
||||
data = collect(JSON3.read(rawpayload()))
|
||||
push!(data,1)
|
||||
dict = Dict(zip(["country","state","town","latitude","longitude","contact","members"],data))
|
||||
insert_into_table("groups",dict)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
#=
|
||||
json_string = """["United States","California",null,38.24508142880928,-120.58593750000001,""]"""
|
||||
data = JSON3.read(json_string)´
|
||||
=#
|
||||
end
|
@@ -5,7 +5,7 @@
|
||||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { groupsByCountry, addMarkersGroups } from '/js/groups.js'
|
||||
import { loadLocaleContent, getData, sendData } from "/js/libraries/serverTools.js"
|
||||
import { loadLocaleContent, getData, sendText } from "/js/libraries/serverTools.js"
|
||||
|
||||
// Import components
|
||||
import "/js/components/map-component.js"
|
||||
@@ -92,8 +92,7 @@
|
||||
if (addressVec!=undefined) {
|
||||
let data = [...addressVec,userPinLat,userPinLng,contactInput.value]
|
||||
let url = "/" + locale + "/groups-add-post/"
|
||||
sendData(url,data)
|
||||
|
||||
sendText(url,JSON.stringify(data))
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user