Merge pull request #1803 from jvehent/patch-1

Fix tag count calculation in Dotclear import
This commit is contained in:
Justin Mayer 2015-08-19 12:50:13 -07:00
commit 39f74280b3

View file

@ -259,7 +259,7 @@ def dc2fields(file):
# Get tags related to a post # Get tags related to a post
tag = post_meta.replace('{', '').replace('}', '').replace('a:1:s:3:\\"tag\\";a:', '').replace('a:0:', '') tag = post_meta.replace('{', '').replace('}', '').replace('a:1:s:3:\\"tag\\";a:', '').replace('a:0:', '')
if len(tag) > 1: if len(tag) > 1:
if int(tag[:1]) == 1: if int(len(tag[:1])) == 1:
newtag = tag.split('"')[1] newtag = tag.split('"')[1]
tags.append( tags.append(
BeautifulSoup( BeautifulSoup(