thewellermangroup
commited on
Commit
·
ecb94a6
1
Parent(s):
9e9fc55
Update app.py
Browse files
app.py
CHANGED
@@ -38,19 +38,24 @@ def password(passwordIn):
|
|
38 |
RIGHT_CLICK = f.read()
|
39 |
f.close()
|
40 |
|
41 |
-
data.update({'
|
|
|
42 |
|
43 |
-
data.update({'CODE': {}})
|
44 |
-
data['CODE'].update({'FUNCTIONS': FUNCTIONS_BACKEND})
|
45 |
-
data['CODE'].update({'RIGHT_CLICK': RIGHT_CLICK})
|
46 |
else:
|
47 |
data = {
|
48 |
'PASSWORD': 'Access Denied',
|
49 |
'PASSWORDINPUT': passwordIn,
|
50 |
'ACCESS': access,
|
51 |
-
'
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
return flask.jsonify(data)
|
|
|
38 |
RIGHT_CLICK = f.read()
|
39 |
f.close()
|
40 |
|
41 |
+
data.update({'DATA': {}})
|
42 |
+
data['DATA'].update({'LINKS': LINKS})
|
43 |
|
44 |
+
data['DATA'].update({'CODE': {}})
|
45 |
+
data['DATA']['CODE'].update({'FUNCTIONS': FUNCTIONS_BACKEND})
|
46 |
+
data['DATA']['CODE'].update({'RIGHT_CLICK': RIGHT_CLICK})
|
47 |
else:
|
48 |
data = {
|
49 |
'PASSWORD': 'Access Denied',
|
50 |
'PASSWORDINPUT': passwordIn,
|
51 |
'ACCESS': access,
|
52 |
+
'DATA'{
|
53 |
+
'CODE': {
|
54 |
+
'FUNCTIONS': 'Access Denied',
|
55 |
+
'RIGHT_CLICK': 'Access Denied'
|
56 |
+
},
|
57 |
+
'LINKS': 'Access Denied'
|
58 |
+
}
|
59 |
}
|
60 |
|
61 |
return flask.jsonify(data)
|