summaryrefslogtreecommitdiff
path: root/model.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'model.lisp')
-rw-r--r--model.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/model.lisp b/model.lisp
index f148455..e070f50 100644
--- a/model.lisp
+++ b/model.lisp
@@ -77,6 +77,9 @@
:documentation "Salt for this hero's password hash."))
(:metaclass db:persistent-class))
+(defun all-heroes ()
+ (db:store-objects-with-class 'hero))
+
;; TODO expiration?
(defclass session (db:store-object)
((hero :reader session-hero