Map layers primary groups: set Misc first
This commit is contained in:
parent
ff5ce218b5
commit
ba1f59cfb9
1 changed files with 2 additions and 2 deletions
|
@ -536,8 +536,8 @@ class ModelRegistry:
|
|||
## Combine Misc (custom) and survey (auto) stores
|
||||
## Retain only one status per category (defaultStatus, 'E'/existing by default)
|
||||
self.stores = pd.concat([
|
||||
self.categories[self.categories.status==conf.map.defaultStatus[0]].sort_values('title'),
|
||||
self.custom_models,
|
||||
self.categories[self.categories.status==conf.map.defaultStatus[0]].sort_values('title'),
|
||||
self.custom_stores
|
||||
])#.drop(columns=['store_name'])
|
||||
self.stores.drop(columns='name', inplace=True)
|
||||
|
@ -590,7 +590,7 @@ class ModelRegistry:
|
|||
self.primary_groups = data.all()
|
||||
|
||||
## Add Misc and Live
|
||||
self.primary_groups.append(CategoryGroup(
|
||||
self.primary_groups.insert(0, CategoryGroup(
|
||||
name='Misc',
|
||||
long_name='Misc',
|
||||
major=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue