fixing unicode stuff
This commit is contained in:
@@ -213,7 +213,7 @@ def get_folder_contents(db,path):
|
||||
files=[]
|
||||
db.execute("SELECT file FROM list where file LIKE ?",(path+'%',))
|
||||
for row in db:
|
||||
base=unicode(row[0],'UTf-8').replace(path,'',1)
|
||||
base=row[0].decode('utf-8').replace(path,'',1)
|
||||
if base.find('/')==-1:
|
||||
files.append(base)
|
||||
return files
|
||||
|
||||
Reference in New Issue
Block a user