changed plugin checker so only template can be used to #21

This commit is contained in:
Squandor 2017-01-18 13:27:01 +01:00
parent 5c80eb2c98
commit beae291a85
1 changed files with 2 additions and 2 deletions

View File

@ -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')