Fix for undefined regex_tables

This commit is contained in:
Leonel Câmara
2020-04-10 18:48:30 +01:00
committed by GitHub
parent 405b0b2e68
commit 3f2b1fe9ca
+1 -1
View File
@@ -1261,7 +1261,7 @@ def plugin():
defines = {}
for m in models:
data = safe_read(apath('%s/models/%s' % (app, m), r=request))
defines[m] = regex_tables.findall(data)
defines[m] = re.findall(REGEX_DEFINE_TABLE, data, re.MULTILINE)
defines[m].sort()
# Get all controllers