mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1803 from jvehent/patch-1
Fix tag count calculation in Dotclear import
This commit is contained in:
commit
39f74280b3
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ def dc2fields(file):
|
|||
# Get tags related to a post
|
||||
tag = post_meta.replace('{', '').replace('}', '').replace('a:1:s:3:\\"tag\\";a:', '').replace('a:0:', '')
|
||||
if len(tag) > 1:
|
||||
if int(tag[:1]) == 1:
|
||||
if int(len(tag[:1])) == 1:
|
||||
newtag = tag.split('"')[1]
|
||||
tags.append(
|
||||
BeautifulSoup(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue