Update app.py
Browse files
app.py
CHANGED
|
@@ -11,13 +11,12 @@ def process_request(id_textbox, installer_textbox,boot_state_textbox,verify_text
|
|
| 11 |
lock_screen_type_textbox,notification_visibility_textbox):
|
| 12 |
|
| 13 |
db = easy_db.DataBase('device_data.db')
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
print("No previous entries found")
|
| 21 |
|
| 22 |
dict_of_device_data_to_save = {"id":id_textbox,
|
| 23 |
"installer":installer_textbox,
|
|
|
|
| 11 |
lock_screen_type_textbox,notification_visibility_textbox):
|
| 12 |
|
| 13 |
db = easy_db.DataBase('device_data.db')
|
| 14 |
+
|
| 15 |
+
previous_entries_for_device = db.pull_where('devices', 'id = "{}"'.format(id_textbox))
|
| 16 |
+
if previous_entries_for_device:
|
| 17 |
+
print("Previous entries found {}".format(len(previous_entries_for_device)))
|
| 18 |
+
else:
|
| 19 |
+
print("No previous entries found")
|
|
|
|
| 20 |
|
| 21 |
dict_of_device_data_to_save = {"id":id_textbox,
|
| 22 |
"installer":installer_textbox,
|