Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dave Griffiths
mongoose-2000
Commits
75714b34
Commit
75714b34
authored
Nov 03, 2013
by
Dave Griffiths
Browse files
csv export from raspberry pi
parent
32c76fe3
Changes
2
Hide whitespace changes
Inline
Side-by-side
web/scripts/eavdb.ss
View file @
75714b34
...
...
@@ -446,7 +446,7 @@
(
lambda
(
kt
r
)
(
if
(
equal?
r
""
)
(
string-append
"\""
(
ktv-key
kt
)
"\""
)
(
string-append
r
", \""
(
ktv-key
kt
)
"\""
)))
"
id,
"
"
\"id\"
"
(
get-attribute-ids/types
db
table
entity-type
)))
(
define
(
csv
db
table
entity-type
)
...
...
@@ -474,7 +474,7 @@
(
string-append
r
", \""
(
get-entity-name
db
"sync"
(
ktv-value
ktv
))
"\""
))
(
else
(
string-append
r
", \""
(
stringify-value-url
ktv
)
"\""
))))
(
vector-ref
res
1
)
;; unique_id
(
string-append
"\""
(
vector-ref
res
1
)
"\""
)
;; unique_id
entity
))))
(
csv-titles
db
table
entity-type
)
(
cdr
(
db-select
...
...
@@ -614,6 +614,7 @@
(
asserteq
"cleaning"
(
length
(
dirty-entities
db
table
))
0
)
(
msg
(
csv
db
table
"thing"
))
(
msg
(
db-status
db
))
)
...
...
web/server.scm
View file @
75714b34
...
...
@@ -75,6 +75,18 @@
(
scheme->txt
(
send-entity
db
table
unique-id
)))))
(
register
(
req
'entity-types
'
(
table
))
(
lambda
(
table
)
(
pluto-response
(
scheme->txt
(
get-all-entity-types
db
table
)))))
(
register
(
req
'entity-csv
'
(
table
type
))
(
lambda
(
table
type
)
(
pluto-response
(
csv
db
table
type
))))
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment