summaryrefslogtreecommitdiff
path: root/gnosis-dev.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-03 16:48:45 +0200
committerThanos Apollo <[email protected]>2024-01-03 16:48:45 +0200
commit1de9f86d6c73d2e4eba10790fd558b29b58bbc23 (patch)
tree10819c8e341f2b549094d40a68fac11753af01c5 /gnosis-dev.el
parentc579e1aad0cb56eaf2bacbbe536abb728ebad8c0 (diff)
gnosis-dev: Rewrite gnosis-dev-retest
Rewrite gnosis-dev-reinit as gnosis-dev-retest, remakes the testing database
Diffstat (limited to 'gnosis-dev.el')
-rw-r--r--gnosis-dev.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnosis-dev.el b/gnosis-dev.el
index 1a0b398..dadbe04 100644
--- a/gnosis-dev.el
+++ b/gnosis-dev.el
@@ -87,14 +87,15 @@ If ask nil, leave development env"
(setf gnosis-testing nil)
(message "Exited development env."))))
-(defun gnosis-dev-reinit ()
+(defun gnosis-dev-retest ()
"Redo database."
(interactive)
(dolist (table '(notes decks review review-log extras))
(condition-case nil
(gnosis--drop-table table)
(error (message "No %s table to drop." table))))
- (gnosis-db-init))
+ (gnosis-db-init)
+ (gnosis-dev-test))
(provide 'gnosis-dev)
;;; gnosis-dev.el ends here