Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import os

data = Blueprint('register', __name__)
PATH_HOSPITAL = os.path.join(path_home, "HOSPITAL.csv")
PATH_LOGISTICAL = os.path.join(path_home, "LOGISTICAL.csv")
PATH_HOTEL = os.path.join(path_home, "HOTEL.csv")
if platform.system()=="Linux":
path_home="/home/wuhan2020/wuhan2020"
else:
Expand All @@ -21,7 +18,9 @@

if not os.path.exists(path_home):
os.mkdir(path_home)

PATH_HOSPITAL = os.path.join(path_home, "HOSPITAL.csv")
PATH_LOGISTICAL = os.path.join(path_home, "LOGISTICAL.csv")
PATH_HOTEL = os.path.join(path_home, "HOTEL.csv")

@data.route('/logistical_list')
def logistical_list():
Expand All @@ -48,8 +47,6 @@ def logistical_list():
}
return json.dumps(response,ensure_ascii=False)



@data.route('/hotel_list')
def hotel_list():
try:
Expand Down