Strip extra commas from tags.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
parent
7179b8bd05
commit
806f845beb
13
buku
13
buku
@ -137,13 +137,18 @@ def AddUpdateEntry(conn, cur, keywords, index):
|
||||
|
||||
if len(keywords) > 1:
|
||||
for tag in keywords[1:]:
|
||||
if tags[-1] == ",":
|
||||
if tag[-1] == ',':
|
||||
tag = tag.strip(',') + ','
|
||||
else:
|
||||
tag = tag.strip(',')
|
||||
|
||||
if tags[-1] == ',':
|
||||
tags += tag
|
||||
else:
|
||||
tags += " " + tag
|
||||
tags += ' ' + tag
|
||||
|
||||
if tags[-1] != ",":
|
||||
tags += ","
|
||||
if tags[-1] != ',':
|
||||
tags += ','
|
||||
|
||||
if titleManual != None:
|
||||
meta = titleManual
|
||||
|
Loading…
x
Reference in New Issue
Block a user