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)
|
rowdata.dropna(axis=1,how='all',inplace=True)
|
||||||
|
|
||||||
if rowdata.empty:
|
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':"",
|
{'script':"",
|
||||||
'div':"",
|
'div':"",
|
||||||
'notes':""
|
'notes':""
|
||||||
}]
|
}]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
rowdata.sort_values(by='time',ascending=True,inplace=True)
|
rowdata.sort_values(by='time',ascending=True,inplace=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user