thewellermangroup commited on
Commit
96abe02
·
1 Parent(s): 870d136

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -39
app.py CHANGED
@@ -2,45 +2,6 @@ import flask
2
  import flask_cors
3
  import os
4
 
5
- f = open("FUNCTIONS.txt",'r',encoding="utf-8")
6
- functions0 = f.read()
7
- f.close()
8
-
9
-
10
-
11
- functions1 = functions0.split('\nfunction ')
12
-
13
- functions1 = functions1[1:]
14
-
15
- # print(functions1)
16
-
17
- BACKEND = ""
18
- FRONTEND = ""
19
-
20
- num = 0
21
-
22
- for fun in functions1:
23
- n = fun.split('{', 1)[0].strip()
24
- f = fun.split('{', 1)[1].rsplit('}', 1)[0].strip().replace("\\","\\\\")
25
- BACKEND += "'" + n + "': '''\n" + f + "\n''',\n"
26
- 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"
27
- num += 1
28
-
29
-
30
-
31
- # print(BACKEND)
32
- # print(FRONTEND)
33
-
34
- print(num)
35
-
36
- f = open("FUNCTIONS_BACKEND.txt",'w',encoding="utf-8")
37
- f.write(BACKEND)
38
- f.close()
39
-
40
- f = open("FUNCTIONS_FRONTEND.txt",'w',encoding="utf-8")
41
- f.write(FRONTEND)
42
- f.close()
43
-
44
  def checkPassword(passwordInput, password):
45
  if (str(passwordInput) == str(password)):
46
  return True
 
2
  import flask_cors
3
  import os
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  def checkPassword(passwordInput, password):
6
  if (str(passwordInput) == str(password)):
7
  return True