2020-11-18 04:14:51 +00:00
|
|
|
import DBHelper
|
2021-02-18 22:19:00 +00:00
|
|
|
import Start_Engine
|
2020-11-18 04:14:51 +00:00
|
|
|
import Upload_Face
|
2021-01-25 02:15:54 +00:00
|
|
|
import Remove_Face
|
|
|
|
import Check_Up
|
2021-03-21 17:37:41 +00:00
|
|
|
import Update
|
2020-11-18 04:14:51 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2021-02-10 03:07:56 +00:00
|
|
|
print("Must do the check up First, this may take long...")
|
2021-02-04 22:41:59 +00:00
|
|
|
Check_Up.update()
|
2021-02-04 22:49:14 +00:00
|
|
|
print("Starting the program.")
|
2020-11-18 04:14:51 +00:00
|
|
|
while True:
|
|
|
|
if DBHelper.get_power() == "on":
|
2021-02-18 22:19:00 +00:00
|
|
|
Start_Engine.start()
|
2020-11-18 04:14:51 +00:00
|
|
|
|
2021-01-23 01:39:48 +00:00
|
|
|
if None not in (DBHelper.get_register_firstname(),
|
|
|
|
DBHelper.get_register_lastname(),
|
|
|
|
DBHelper.get_register_email(),
|
|
|
|
DBHelper.get_register_phone()):
|
|
|
|
Upload_Face.upload_your_face(DBHelper.get_register_firstname(), DBHelper.get_register_lastname(),
|
|
|
|
DBHelper.get_register_email(), DBHelper.get_register_phone())
|
|
|
|
DBHelper.remove_register_data()
|
2021-01-25 02:15:54 +00:00
|
|
|
|
|
|
|
if None not in (DBHelper.get_removal_firstname(),
|
|
|
|
DBHelper.get_removal_lastname(),
|
|
|
|
DBHelper.get_removal_email(),
|
|
|
|
DBHelper.get_removal_phone()):
|
|
|
|
Remove_Face.remove_your_face(DBHelper.get_removal_firstname(), DBHelper.get_removal_lastname(),
|
|
|
|
DBHelper.get_removal_email(), DBHelper.get_removal_phone())
|
|
|
|
DBHelper.remove_removal_data()
|
2021-03-21 17:37:41 +00:00
|
|
|
|
|
|
|
if None not in (DBHelper.get_update_firstname(),
|
|
|
|
DBHelper.get_update_lastname(),
|
|
|
|
DBHelper.get_update_email(),
|
|
|
|
DBHelper.get_update_phone()):
|
|
|
|
Update.update_your_face(DBHelper.get_update_firstname(), DBHelper.get_update_lastname(),
|
|
|
|
DBHelper.get_update_email(), DBHelper.get_update_phone())
|
|
|
|
DBHelper.remove_update_data()
|