Fix startup when there's no live layers in reds
This commit is contained in:
parent
1e2802f289
commit
f47e018e65
1 changed files with 4 additions and 1 deletions
|
@ -623,7 +623,10 @@ class ModelRegistry:
|
||||||
inplace=True)
|
inplace=True)
|
||||||
df_live = pd.DataFrame.from_dict(self.geom_live_defs.values(),
|
df_live = pd.DataFrame.from_dict(self.geom_live_defs.values(),
|
||||||
orient='columns'
|
orient='columns'
|
||||||
).set_index('store')
|
)
|
||||||
|
if len(df_live) == 0:
|
||||||
|
return
|
||||||
|
df_live.set_index('store', inplace=True)
|
||||||
## Adjust column names
|
## Adjust column names
|
||||||
## and add columns, to make sure pandas dtypes are not changed when the
|
## and add columns, to make sure pandas dtypes are not changed when the
|
||||||
## dataframes are concat
|
## dataframes are concat
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue