Commit 7456bf62 authored by 段英荣's avatar 段英荣

modify hospital is_online

parent e7b65296
......@@ -71,9 +71,9 @@ class HostpitalPosInfo(object):
def get_hostpital_info(cls):
try:
if len(cls.hospital_pos_dict) == 0:
query = doctor.Hospital.objects.all().query
query_results = django.db.models.QuerySet(model=doctor.Hospital, query=query)
for item in query_results:
query = doctor.Hospital.objects.filter(is_online=True)
# query_results = django.db.models.QuerySet(model=doctor.Hospital, query=query)
for item in query:
name = item.name
lng = float(item.baidu_loc_lng)
lat = float(item.baidu_loc_lat)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment