more changes

This commit is contained in:
ville rantanen
2014-06-29 16:58:23 +03:00
parent 8a7fce10c1
commit 259b4ca566

View File

@@ -181,7 +181,7 @@ def get_folder_contents(db,path):
files=[] files=[]
db.execute("SELECT file FROM list where file LIKE ?",(path+'%',)) db.execute("SELECT file FROM list where file LIKE ?",(path+'%',))
for row in db: for row in db:
base=row[0].replace(path,'',1) base=unicode(row[0],'UTf-8').replace(path,'',1)
if base.find('/')==-1: if base.find('/')==-1:
files.append(base) files.append(base)
return files return files