소스 검색

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

optional 'since' handling in WP import plugin
Brit Butler 10 년 전
부모
커밋
8e464ed762
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)