Parcourir la Source

Merge pull request #63 from cmstrickland/wp-import-since

optional 'since' handling in WP import plugin
Brit Butler il y a 10 ans
Parent
commit
8e464ed762
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      plugins/import.lisp

+ 2 - 1
plugins/import.lisp

@@ -58,7 +58,8 @@
58 58
     (ensure-directories-exist (or output (repo *config*)))
59 59
     (let* ((xml (cxml:parse-file filepath (cxml-dom:make-dom-builder)))
60 60
            (posts (dom:get-elements-by-tag-name xml "item")))
61
-      (loop for post across posts do (import-post post output since))
61
+      (loop for post across posts do (if since (import-post post output since)
62
+                                         (import-post post output)))
62 63
       (delete-file filepath))))
63 64
 
64 65
 (defun enable (&key filepath output)