mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
python 3 migration
This commit is contained in:
@@ -1 +0,0 @@
|
||||
import endpoints
|
||||
@@ -134,7 +134,7 @@ def plugins():
|
||||
"""
|
||||
response = requests.get("https://raw.githubusercontent.com/Manuel83/craftbeerpi-plugins/master/plugins.yaml")
|
||||
cbpi.cache["plugins"] = merge(yaml.load(response.text), cbpi.cache["plugins"])
|
||||
for key, value in cbpi.cache["plugins"].iteritems():
|
||||
for key, value in cbpi.cache["plugins"].items():
|
||||
value["installed"] = os.path.isdir("./modules/plugins/%s/" % (key))
|
||||
|
||||
return json.dumps(cbpi.cache["plugins"])
|
||||
|
||||
Reference in New Issue
Block a user