From 1de9f86d6c73d2e4eba10790fd558b29b58bbc23 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 3 Jan 2024 16:48:45 +0200 Subject: gnosis-dev: Rewrite gnosis-dev-retest Rewrite gnosis-dev-reinit as gnosis-dev-retest, remakes the testing database --- gnosis-dev.el | 5 +++-- 1 file 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 -- cgit v1.2.3