|
@@ -15,13 +15,16 @@
|
|
|
(defvar *run-cron* t "Controls if starting a web should run cron tasks")
|
|
(defvar *run-cron* t "Controls if starting a web should run cron tasks")
|
|
|
(defvar *crons* (list
|
|
(defvar *crons* (list
|
|
|
(list #'timeliner.locations:on-cron '(:minute 0 :hour *))
|
|
(list #'timeliner.locations:on-cron '(:minute 0 :hour *))
|
|
|
- (list #'timeliner.financisto:on-cron '(:minute 0 :hour 7))
|
|
|
|
|
- (list #'timeliner.foursquare:on-cron '(:minute 5 :hour *)))
|
|
|
|
|
|
|
+ (list #'timeliner.twitter:on-cron '(:minute 1 :hour *))
|
|
|
|
|
+ (list #'timeliner.foursquare:on-cron '(:minute 5 :hour *))
|
|
|
|
|
+ (list #'timeliner.financisto:on-cron '(:minute 0 :hour 7)))
|
|
|
"List of cron functions with their schedules")
|
|
"List of cron functions with their schedules")
|
|
|
(defvar *cron-timers* nil)
|
|
(defvar *cron-timers* nil)
|
|
|
|
|
|
|
|
(defmethod restas:initialize-module-instance :before ((module (eql #.*package*)) context)
|
|
(defmethod restas:initialize-module-instance :before ((module (eql #.*package*)) context)
|
|
|
(restas:with-context context
|
|
(restas:with-context context
|
|
|
|
|
+ (alexandria:when-let (file (probe-file "config.lisp"))
|
|
|
|
|
+ (load file))
|
|
|
(cl-mongo:mongo :host "10.8.0.6")
|
|
(cl-mongo:mongo :host "10.8.0.6")
|
|
|
(cl-mongo:db.use "timeline")
|
|
(cl-mongo:db.use "timeline")
|
|
|
(when *run-cron*
|
|
(when *run-cron*
|
|
@@ -349,7 +352,8 @@
|
|
|
(case (! this model (get :type))
|
|
(case (! this model (get :type))
|
|
|
(:place "glyphicon glyphicon-map-marker")
|
|
(:place "glyphicon glyphicon-map-marker")
|
|
|
(:finance "glyphicon glyphicon-usd")
|
|
(:finance "glyphicon glyphicon-usd")
|
|
|
- (:checkin "glyphicon glyphicon-ok-circle")))
|
|
|
|
|
|
|
+ (:checkin "glyphicon glyphicon-ok-circle")
|
|
|
|
|
+ (:twitter "glyphicon glyphicon-pencil")))
|
|
|
render (lambda ()
|
|
render (lambda ()
|
|
|
(! this $el (attr (create
|
|
(! this $el (attr (create
|
|
|
:href "#"
|
|
:href "#"
|