mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
fix dependency & error on lister
This commit is contained in:
@@ -42,7 +42,7 @@ ghash.o: ghash.h ghash.c config.h udata.h misc.h Makefile config.mk
|
||||
safewrite.o: safewrite.h safewrite.c
|
||||
jget.o: jget.c jget.h json.h Makefile config.mk
|
||||
misc.o: misc.c misc.h udata.h Makefile config.mk
|
||||
http.o: http.c mongoose.h util.h http.h
|
||||
http.o: http.c mongoose.h util.h http.h storage.h
|
||||
util.o: util.c util.h Makefile config.mk
|
||||
|
||||
ocat: ocat.o storage.o json.o geohash.o ghash.o mkpath.o util.o
|
||||
|
||||
@@ -81,7 +81,7 @@ void push_geojson(struct mg_connection *conn)
|
||||
* process each and build the JSON `obj' with an array of locations.
|
||||
*/
|
||||
|
||||
if ((json = lister(username, device, s_lo, s_hi)) != NULL) {
|
||||
if ((json = lister(username, device, s_lo, s_hi, FALSE)) != NULL) {
|
||||
if ((arr = json_find_member(json, "results")) != NULL) { // get array
|
||||
json_foreach(f, arr) {
|
||||
// fprintf(stderr, "%s\n", f->string_);
|
||||
@@ -188,7 +188,7 @@ int ev_handler(struct mg_connection *conn, enum mg_event ev)
|
||||
if (!strcmp(conn->uri, "/api/users")) {
|
||||
JsonNode *json;
|
||||
|
||||
if ((json = lister(NULL, NULL, 0, 0)) != NULL) {
|
||||
if ((json = lister(NULL, NULL, 0, 0, FALSE)) != NULL) {
|
||||
char *js;
|
||||
|
||||
js = json_stringify(json, " ");
|
||||
|
||||
Reference in New Issue
Block a user