- Recipe Book

- BugFixes
- Refactoring
This commit is contained in:
Manuel83
2017-11-22 00:10:11 +01:00
parent 6253cb9976
commit 13836a5680
17 changed files with 660 additions and 63 deletions
+1
View File
@@ -46,6 +46,7 @@ class PluginView(FlaskView):
response = requests.get("https://raw.githubusercontent.com/Manuel83/craftbeerpi-plugins/master/plugins.yaml")
self.api.cache["plugins"] = self.merge(yaml.load(response.text), self.api.cache["plugins"])
for key, value in cbpi.cache["plugins"].iteritems():
print key
value["installed"] = os.path.isdir("./plugins/%s/" % (key))
return json.dumps(cbpi.cache["plugins"])