-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
38 lines (26 loc) · 1011 Bytes
/
main.py
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
28
29
30
31
32
33
34
35
36
import os
########## LECTURES ##########
#LECTURE = '01_basic_api'
#LECTURE = '02_basic_api_postgres'
# LECTURE = '03_basic_api_orm'
# LECTURE = '04_basic_api_user'
# LECTURE = '05_basic_api_relationships'
LECTURE = '06_basic_api_voting'
# Hauptfunktion
if __name__ == '__main__':
os.system('cls')
print(LECTURE)
if LECTURE == '01_basic_api':
os.system('uvicorn app.basic_api:app --reload')
elif LECTURE == '02_basic_api_postgres':
os.system('uvicorn app.basic_api_postgres:app --reload')
elif LECTURE == '03_basic_api_orm':
os.system('uvicorn app.basic_api_orm:app --reload')
elif LECTURE == '04_basic_api_user':
os.system('uvicorn app.basic_api_user:app --reload')
elif LECTURE == '05_basic_api_relationships':
os.system('uvicorn app.basic_api_relationships:app --reload')
elif LECTURE == '06_basic_api_voting':
os.system('uvicorn app.basic_api_voting:app --reload')
else:
print(f'No lecture found!')