소스 검색

fix tag updating

Oz N Tiram 9 년 전
부모
커밋
600c358e65
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      blogit2.py

+ 2 - 3
blogit2.py

@@ -416,9 +416,8 @@ def new_build():
             if entry.render():
                 entries.append(entry)
                 for tag in entry.tags:
-                    if tag.name not in tags:
-                        tags[tag.name] = tag
-                        tag.posts = [post_id]
+                    tag.posts = [post_id]
+                    tags[tag.name] = tag
             print "     %s" % entry.path
         except Exception as e:
             print "Found some problem in: ", post