going through tests
This commit is contained in:
@@ -1973,7 +1973,7 @@ def thumbnails_set(r, id, favorites):
|
||||
columns += [f.yparam2 for f in favorites]
|
||||
|
||||
columns += ['time']
|
||||
rowdata = dataprep.getsmallrowdata_db(columns, ids=[id], doclean=True)
|
||||
rowdata = dataprep.getsmallrowdata_pd(columns, ids=[id], doclean=True)
|
||||
|
||||
try:
|
||||
rowdata.dropna(axis=1, how='all', inplace=True)
|
||||
@@ -1987,7 +1987,7 @@ def thumbnails_set(r, id, favorites):
|
||||
|
||||
if rowdata.empty:
|
||||
try:
|
||||
rowdata = dataprep.getsmallrowdata_db(columns, ids=[id], doclean=False,
|
||||
rowdata = dataprep.getsmallrowdata_pd(columns, ids=[id], doclean=False,
|
||||
workstrokesonly=False)
|
||||
except: # pragma: no cover
|
||||
return [
|
||||
@@ -1996,12 +1996,12 @@ def thumbnails_set(r, id, favorites):
|
||||
'notes': ""
|
||||
}]
|
||||
|
||||
if rowdata.empty:
|
||||
return [
|
||||
{'script': "",
|
||||
'div': "",
|
||||
'notes': ""
|
||||
}]
|
||||
if rowdata.empty:
|
||||
return [
|
||||
{'script': "",
|
||||
'div': "",
|
||||
'notes': ""
|
||||
}]
|
||||
|
||||
lengte = len(rowdata)
|
||||
maxlength = 50
|
||||
|
||||
Reference in New Issue
Block a user