Skip to content

Commit 6664110

Browse files
fix city source
1 parent 5604c3a commit 6664110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def check(self):
135135
position = last_info["d"]["oldInfo"]['geo_api_info']
136136
position = json_loads(position)
137137

138-
print("◉上一次提交地址为:", position['address'])
138+
print("◉上一次提交地址为:", position['formattedAddress'])
139139
# print("◉上一次提交GPS为", position["position"])
140140

141141
today = time.strftime("%Y%m%d", time.localtime())
@@ -163,7 +163,7 @@ def checkin(self):
163163

164164
geo_api_info = json_loads(self.last_info["geo_api_info"])
165165
province = geo_api_info["addressComponent"].get("province", "")
166-
city = json_loads(self.last_info["city"])
166+
city = self.last_info["city"]
167167
district = geo_api_info["addressComponent"].get("district", "")
168168
self.last_info.update(
169169
{

0 commit comments

Comments
 (0)