mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 14:38:15 +01:00
Add 'All' and 'steps' as categories
This commit is contained in:
parent
a70c63edf4
commit
5f3e3ea60d
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
||||||
__version__ = "4.1.8.a1"
|
__version__ = "4.1.8.a2"
|
||||||
__codename__ = "Groundhog Day"
|
__codename__ = "Groundhog Day"
|
||||||
|
|
||||||
|
|
|
@ -219,7 +219,9 @@ class PluginController():
|
||||||
|
|
||||||
async def load_plugin_names(self, filter="cbpi"):
|
async def load_plugin_names(self, filter="cbpi"):
|
||||||
result = []
|
result = []
|
||||||
result.append(dict(Name="craftbeerpi"))
|
result.append(dict(label="All", value="All"))
|
||||||
|
result.append(dict(label="craftbeerpi", value="craftbeerpi"))
|
||||||
|
result.append(dict(label="steps", value="steps"))
|
||||||
try:
|
try:
|
||||||
discovered_plugins = {
|
discovered_plugins = {
|
||||||
name: importlib.import_module(name)
|
name: importlib.import_module(name)
|
||||||
|
@ -231,7 +233,7 @@ class PluginController():
|
||||||
try:
|
try:
|
||||||
meta = metadata(key)
|
meta = metadata(key)
|
||||||
if meta["Name"] != "cbpi4gui":
|
if meta["Name"] != "cbpi4gui":
|
||||||
result.append(dict(Name=meta["Name"]))
|
result.append(dict(label=meta["Name"], value=meta["Name"]))
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("FAILED to load plugin {} ".format(key))
|
logger.error("FAILED to load plugin {} ".format(key))
|
||||||
|
|
Loading…
Reference in a new issue