Commit 6c079617 authored by 段英荣's avatar 段英荣

modify

parent ca7e5ba3
......@@ -71,8 +71,8 @@ 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)
query_results = doctor.Hospital.objects.filter(is_online=True)
#query_results = django.db.models.QuerySet(model=doctor.Hospital, query=query)
for item in query_results:
name = item.name
lng = float(item.baidu_loc_lng)
......
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