

def add_category(self, category, icon='', label='', parent_category=''):
    label = (label or category)
    if (self == ''):
        self.menu.append(MenuItem(name=category, icon=icon, label=label))
    else:
        self.find(category).childs.append(MenuItem(name=category, icon=icon, label=label))

dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/menu.py Menu.add_category/VarMisuse@34/38 `parent_category`->`self`