Files
airflow/dags/poi/business/district_facilities.py
T
sjshenjian 1cd5079ac4 优化
2024-11-21 10:48:38 +08:00

36 lines
775 B
Python

import sys
import district_bank as bank
import district_bus as bus
import district_hospital as hospital
import district_school as school
import district_subway as subway
import district_supermarket as supermarket
type = 'all'
if len(sys.argv) > 1:
type = sys.argv[1]
print("输出类型" + type)
if type is not None:
if type == 'bank':
bank.do()
elif type == 'bus':
import district_bus as bus
bus.do()
elif type == 'hospital':
hospital.do()
elif type == 'school':
school.do()
elif type == 'subway':
subway.do()
elif type == 'supermarket':
supermarket.do()
else:
hospital.do()
school.do()
subway.do()
supermarket.do()
bus.do()
bank.do()