better power zones
This commit is contained in:
@@ -6283,7 +6283,15 @@ def thumbnails_set(r, id, favorites):
|
||||
columns += ['time']
|
||||
rowdata = dataprep.getsmallrowdata_db(columns, ids=[id], doclean=True)
|
||||
|
||||
rowdata.dropna(axis=1, how='all', inplace=True)
|
||||
try:
|
||||
rowdata.dropna(axis=1, how='all', inplace=True)
|
||||
except TypeError:
|
||||
return [
|
||||
{'script': "",
|
||||
'div': "",
|
||||
'notes': ""
|
||||
}]
|
||||
|
||||
|
||||
if rowdata.empty:
|
||||
try:
|
||||
@@ -6303,12 +6311,6 @@ def thumbnails_set(r, id, favorites):
|
||||
'notes': ""
|
||||
}]
|
||||
|
||||
# else:
|
||||
# try:
|
||||
# rowdata.sort_values(by='time',ascending=True,inplace=True)
|
||||
# except KeyError:
|
||||
# pass
|
||||
|
||||
lengte = len(rowdata)
|
||||
maxlength = 50
|
||||
if lengte > maxlength:
|
||||
|
||||
Reference in New Issue
Block a user