Commit
·
e5097ae
1
Parent(s):
574868c
Update main.py
Browse files
main.py
CHANGED
@@ -4,6 +4,7 @@ import schemas
|
|
4 |
import Database
|
5 |
import models
|
6 |
import Cleaning
|
|
|
7 |
from datetime import datetime
|
8 |
|
9 |
|
@@ -12,7 +13,8 @@ app=FastAPI()
|
|
12 |
|
13 |
@app.get('/')
|
14 |
def index():
|
15 |
-
|
|
|
16 |
|
17 |
@app.get('/reviews',status_code=status.HTTP_200_OK)
|
18 |
def get_reviews():
|
|
|
4 |
import Database
|
5 |
import models
|
6 |
import Cleaning
|
7 |
+
import pytz
|
8 |
from datetime import datetime
|
9 |
|
10 |
|
|
|
13 |
|
14 |
@app.get('/')
|
15 |
def index():
|
16 |
+
tz = pytz.timezone('Etc/GMT+3')
|
17 |
+
return "This is the defult page"+str(datetime.today(tz).date())
|
18 |
|
19 |
@app.get('/reviews',status_code=status.HTTP_200_OK)
|
20 |
def get_reviews():
|