diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-04-25 19:07:03 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-04-25 19:07:03 +0200 |
commit | 2d2c8a209ce5430ab4c4e18c7f04535942cf829f (patch) | |
tree | 854496a12f74844c20ad3355a7a0688aebf938cd /module/output/none.scm | |
parent | Change how in-date-range? does it's calculation. (diff) | |
download | calp-2d2c8a209ce5430ab4c4e18c7f04535942cf829f.tar.gz calp-2d2c8a209ce5430ab4c4e18c7f04535942cf829f.tar.xz |
Made none-output print statprof info.
Diffstat (limited to 'module/output/none.scm')
-rw-r--r-- | module/output/none.scm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/module/output/none.scm b/module/output/none.scm new file mode 100644 index 00000000..2380438b --- /dev/null +++ b/module/output/none.scm @@ -0,0 +1,19 @@ +(define-module (output none) + #:use-module (statprof) + #:use-module (vcomponent group) + #:use-module (srfi srfi-41) + #:use-module (srfi srfi-19) + #:use-module (srfi srfi-19 util) + #:use-module (util) + #:export (none-main)) + +(define (none-main calendars events args) + (define date (drop-time (current-date))) + (statprof + (lambda () + (group->event-list + (stream-car + ;; TODO reusing the same grouping causes it to lose events. + ;; I currently have no idea why, but it's BAD. + (get-groups-between (group-stream events) + date date)))))) |