fixed thumbnails
This commit is contained in:
@@ -3149,11 +3149,23 @@ def thumbnails_set(r,id,favorites):
|
||||
rowdata.dropna(axis=1,how='all',inplace=True)
|
||||
|
||||
if rowdata.empty:
|
||||
return [
|
||||
try:
|
||||
rowdata = dataprep.getsmallrowdata_db(columns,ids=[id],doclean=False,
|
||||
workstrokesonly=False)
|
||||
except:
|
||||
return [
|
||||
{'script':"",
|
||||
'div':"",
|
||||
'notes':""
|
||||
}]
|
||||
|
||||
if rowdata.empty:
|
||||
return [
|
||||
{'script':"",
|
||||
'div':"",
|
||||
'notes':""
|
||||
}]
|
||||
|
||||
else:
|
||||
try:
|
||||
rowdata.sort_values(by='time',ascending=True,inplace=True)
|
||||
|
||||
Reference in New Issue
Block a user