1
0
Oz N Tiram 9 жил өмнө
parent
commit
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