Skip to content

Commit 1c731b4

Browse files
fix bug (wuhan2020#8)
* add gitignore * add hospitals * adapt for serverless * inline import
1 parent 041879a commit 1c731b4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

utils.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
import os
99

1010
data = Blueprint('register', __name__)
11-
PATH_HOSPITAL = os.path.join(path_home, "HOSPITAL.csv")
12-
PATH_LOGISTICAL = os.path.join(path_home, "LOGISTICAL.csv")
13-
PATH_HOTEL = os.path.join(path_home, "HOTEL.csv")
1411
if platform.system()=="Linux":
1512
path_home="/home/wuhan2020/wuhan2020"
1613
else:
@@ -21,7 +18,9 @@
2118

2219
if not os.path.exists(path_home):
2320
os.mkdir(path_home)
24-
21+
PATH_HOSPITAL = os.path.join(path_home, "HOSPITAL.csv")
22+
PATH_LOGISTICAL = os.path.join(path_home, "LOGISTICAL.csv")
23+
PATH_HOTEL = os.path.join(path_home, "HOTEL.csv")
2524

2625
@data.route('/logistical_list')
2726
def logistical_list():
@@ -48,8 +47,6 @@ def logistical_list():
4847
}
4948
return json.dumps(response,ensure_ascii=False)
5049

51-
52-
5350
@data.route('/hotel_list')
5451
def hotel_list():
5552
try:

0 commit comments

Comments
 (0)