Browse Source

fix tag updating

Oz N Tiram 9 years ago
parent
commit
600c358e65
1 changed files with 2 additions and 3 deletions
  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