Пример #1
0
def run_update(old_first, old_last, id_to_del):
        (new_first_name, new_last_name, new_phone_number, new_email) = Member.ask_details()
        run_sql_script(UPDATE_ID_SQL, (new_first_name, new_last_name, new_phone_number, new_email, old_first, old_last, id_to_del))
        print("{0} {1} member updated to database on {2} at {3}".format(new_first_name, new_last_name, date, time_imp()))
Пример #2
0
def run_insert():
    (first_name, last_name, phone_number, email) = Member.ask_details()
    run_sql_script(INSERT_SQL, (first_name, last_name, phone_number, email, date, date_30))
    print("{0} {1} adding to database on {2} at {3}".format(first_name, last_name, date, time_imp()))