thewellermangroup
commited on
Commit
·
6aa35bb
1
Parent(s):
e6c7324
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
|
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 BACKENDDATA 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 |
|