gets current scripts
This commit is contained in:
Regular → Executable
+8
-9
@@ -4,6 +4,8 @@
|
||||
racket/string
|
||||
)
|
||||
|
||||
(provide read-all)
|
||||
|
||||
(define crm-cfg-file (build-path (find-system-path 'home-dir) "crm" "data" "config-internal.php"))
|
||||
|
||||
(define (read-db-config)
|
||||
@@ -67,6 +69,7 @@
|
||||
(string-append (string-replace name "/" "-") "." ext))))
|
||||
)
|
||||
|
||||
(displayln (format "making ~a / ~a" dir name))
|
||||
(to-file (mk-name name "id") id)
|
||||
(to-file (mk-name name "js") value_script)
|
||||
(to-file (mk-name name "descr") description)
|
||||
@@ -81,13 +84,9 @@
|
||||
(let ((rows (query-rows dbh "select id, name, description, formule from script where deleted = 0")))
|
||||
(handle-rows "scripts" rows)))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;(displayln (read-db-config))
|
||||
|
||||
|
||||
(define (read-all)
|
||||
(let ((dbh (apply connect-db (read-db-config))))
|
||||
(read-script-configs dbh)
|
||||
(read-scripts dbh))
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user