thewellermangroup
commited on
Commit
·
725ca88
1
Parent(s):
ee09a16
Update DATA/CODE/FUNCTIONS/functions.py
Browse files
DATA/CODE/FUNCTIONS/functions.py
CHANGED
@@ -18,7 +18,7 @@ for fun in functions1:
|
|
18 |
n = fun.split('{', 1)[0].strip()
|
19 |
f = fun.split('{', 1)[1].rsplit('}', 1)[0].strip().replace("\\","\\\\")
|
20 |
BACKEND += "'" + n + "': '''\n" + f + "\n''',\n"
|
21 |
-
FRONTEND += "function "+n+" {\n fetchApiData();\n // Ensure that globalData is populated before executing the code\n setTimeout(() => {\n if (BACKENDDATA.ACCESS) {\n eval(BACKENDDATA.FUNCTIONS['"+n+"']);\n }\n }, DELAYTIME);\n}\n"
|
22 |
num += 1
|
23 |
|
24 |
|
|
|
18 |
n = fun.split('{', 1)[0].strip()
|
19 |
f = fun.split('{', 1)[1].rsplit('}', 1)[0].strip().replace("\\","\\\\")
|
20 |
BACKEND += "'" + n + "': '''\n" + f + "\n''',\n"
|
21 |
+
FRONTEND += "function "+n+" {\n fetchApiData();\n // Ensure that globalData is populated before executing the code\n setTimeout(() => {\n if (BACKENDDATA.ACCESS) {\n eval(BACKENDDATA.DATA.CODE.FUNCTIONS.BACKEND['"+n+"']);\n }\n }, DELAYTIME);\n}\n"
|
22 |
num += 1
|
23 |
|
24 |
|