Use a different process to flatten the table
This commit is contained in:
parent
e699c8e700
commit
ce73cc54fc
1 changed files with 3 additions and 4 deletions
|
@ -100,10 +100,9 @@
|
||||||
(cdr (assoc category mk--qda/interview-questions)))
|
(cdr (assoc category mk--qda/interview-questions)))
|
||||||
|
|
||||||
(defun mk--qda/questions-by-lang (lang category)
|
(defun mk--qda/questions-by-lang (lang category)
|
||||||
(mapcan #'cdr
|
(let* ((questions (mk--qda/questions-by-category category))
|
||||||
(remove nil
|
(lang-questions (remove nil (mapcar #'(lambda (x) (member lang x)) questions))))
|
||||||
(mapcar #'(lambda (x) (member lang x))
|
(remove lang (flatten-tree lang-questions))))
|
||||||
(funcall 'mk--qda/questions-by-category category)))))
|
|
||||||
|
|
||||||
;; (mk--qda/questions-in-lang 'de (mk--qda/interview-cat 'sus))
|
;; (mk--qda/questions-in-lang 'de (mk--qda/interview-cat 'sus))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue