thewellermangroup commited on
Commit
21b89ef
1 Parent(s): a8474cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -29,17 +29,19 @@ def password(passwordIn):
29
  'ACCESS': access,
30
  }
31
  f = open('/FUNCTIONS/FUNCTIONS_BACKEND.txt', 'r', encoding='utf-8')
32
- FUNCTIONS_BACKEND = f.read()
33
  f.close()
34
  f = open('/LINKS/LINKS.txt', 'r', encoding='utf-8')
35
- LINKS = f.read()
36
  f.close()
37
  f = open('/RIGHT_CLICK/RIGHT_CLICK.txt', 'r', encoding='utf-8')
38
  RIGHT_CLICK = f.read()
39
  f.close()
40
- exec("data['CODE'].update({'FUNCTIONS': {"+FUNCTIONS_BACKEND+"}})")
41
- exec("data['CODE'].update({'LINKS': {"+LINKS+"}})")
42
- exec("data['CODE'].update({'RIGHT_CLICK': '''"+RIGHT_CLICK+"'''})")
 
 
43
  else:
44
  data = {
45
  'PASSWORD': 'Access Denied',
 
29
  'ACCESS': access,
30
  }
31
  f = open('/FUNCTIONS/FUNCTIONS_BACKEND.txt', 'r', encoding='utf-8')
32
+ FUNCTIONS_BACKEND = eval(f.read())
33
  f.close()
34
  f = open('/LINKS/LINKS.txt', 'r', encoding='utf-8')
35
+ LINKS = eval(f.read())
36
  f.close()
37
  f = open('/RIGHT_CLICK/RIGHT_CLICK.txt', 'r', encoding='utf-8')
38
  RIGHT_CLICK = f.read()
39
  f.close()
40
+
41
+ data.update({'CODE': {}})
42
+ data['CODE'].update({'FUNCTIONS': FUNCTIONS_BACKEND})
43
+ data['CODE'].update({'LINKS': LINKS})
44
+ data['CODE'].update({'RIGHT_CLICK': RIGHT_CLICK})
45
  else:
46
  data = {
47
  'PASSWORD': 'Access Denied',