forked from khushaal-nandwani/queueless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (22 loc) · 755 Bytes
/
main.py
File metadata and controls
27 lines (22 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import RestaurantCaller
import UserEnd
def run():
print("Welcome to Track my Seat\n")
option = int(input("Start Search (1) or Log In as a Business (2):"))
# User End
if option == 1:
UserEnd.start_user_end()
# Restaurant Owner
else:
username = input("Username:")
valid = True # TODO: validate from API
if valid:
correct_password = "haha" # TODO: get this from database/Api
password = input("Password:")
if correct_password == password:
RestaurantCaller.getRestaurant(name)
else:
RestaurantCaller.createRestaurant()
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
run()