Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
import random
|
|
|
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import easy_db
|
| 4 |
|
|
@@ -9,13 +11,6 @@ def process_request(id_textbox, installer_textbox,boot_state_textbox,verify_text
|
|
| 9 |
lock_screen_type_textbox,notification_visibility_textbox):
|
| 10 |
|
| 11 |
db = easy_db.DataBase('device_data.db')
|
| 12 |
-
print("Adding {} to DB.".format(id_textbox))
|
| 13 |
-
print(id_textbox, installer_textbox,boot_state_textbox,verify_textbox,patch_level_textbox,
|
| 14 |
-
oem_textbox,brand_textbox,model_textbox,unlocked_textbox,debug_enabled_textbox,
|
| 15 |
-
primary_certificate_textbox,emulator_textbox,fingerprint_status_textbox,storage_encryption_status_textbox,
|
| 16 |
-
market_apps_enabled_textbox,adb_enabled_textbox,lock_screen_timeout_textbox,
|
| 17 |
-
lock_screen_type_textbox,notification_visibility_textbox)
|
| 18 |
-
|
| 19 |
|
| 20 |
|
| 21 |
dict_of_device_data_to_save = {"id_textbox":id_textbox,
|
|
@@ -37,7 +32,8 @@ def process_request(id_textbox, installer_textbox,boot_state_textbox,verify_text
|
|
| 37 |
"lock_screen_timeout_textbox":lock_screen_timeout_textbox,
|
| 38 |
"lock_screen_type_textbox":lock_screen_type_textbox,
|
| 39 |
"notification_visibility_textbox":notification_visibility_textbox}
|
| 40 |
-
|
|
|
|
| 41 |
|
| 42 |
db.append('devices', [dict_of_device_data_to_save])
|
| 43 |
|
|
|
|
| 1 |
import random
|
| 2 |
+
from pprint import pprint
|
| 3 |
+
|
| 4 |
import gradio as gr
|
| 5 |
import easy_db
|
| 6 |
|
|
|
|
| 11 |
lock_screen_type_textbox,notification_visibility_textbox):
|
| 12 |
|
| 13 |
db = easy_db.DataBase('device_data.db')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
dict_of_device_data_to_save = {"id_textbox":id_textbox,
|
|
|
|
| 32 |
"lock_screen_timeout_textbox":lock_screen_timeout_textbox,
|
| 33 |
"lock_screen_type_textbox":lock_screen_type_textbox,
|
| 34 |
"notification_visibility_textbox":notification_visibility_textbox}
|
| 35 |
+
|
| 36 |
+
pprint(dict_of_device_data_to_save)
|
| 37 |
|
| 38 |
db.append('devices', [dict_of_device_data_to_save])
|
| 39 |
|