From beae291a85f2f135085e4e2c0a8f92c3a2983f60 Mon Sep 17 00:00:00 2001 From: Squandor Date: Wed, 18 Jan 2017 13:27:01 +0100 Subject: [PATCH] changed plugin checker so only template can be used to #21 --- modules/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api.py b/modules/api.py index 492a872..2266973 100644 --- a/modules/api.py +++ b/modules/api.py @@ -197,10 +197,10 @@ def indexPlugins(params={}): fol['id'] = len(indexes) fol['folder'] = i fol['status'] = 'install' - for filename in os.listdir('plugins/'): + for filename in os.listdir('templates/'): installedPlugins.append(filename) - for filename in os.listdir(indexFolderPath + i + '/plugins'): + for filename in os.listdir(indexFolderPath + i + '/templates'): if filename in installedPlugins: installed_version = getPluginVersion(docsFolderPath + i + '_readme.md') indexed_version = getPluginVersion(indexFolderPath + i + '/' + docsFolderPath + 'readme.md')