Skip to content

Commit

Permalink
Merge pull request #4 from FDUCSLG/fix-non-geo-info
Browse files Browse the repository at this point in the history
  • Loading branch information
ichn-hu committed Mar 12, 2021
2 parents a80d0df + 3d3144e commit 4bc8c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def check(self):
self.close()
else:
print("\n\n*******未提交*******")
self.last_info = last_info["d"]["info"]
self.last_info = last_info["d"]["oldInfo"]

def checkin(self):
"""
Expand All @@ -162,7 +162,7 @@ def checkin(self):
print("\n\n◉◉提交中")

geo_api_info = json_loads(self.last_info["geo_api_info"])
province = geo_api_info["addressComponent"].get("province", "")
province = self.last_info["province"]
city = self.last_info["city"]
district = geo_api_info["addressComponent"].get("district", "")
self.last_info.update(
Expand Down

0 comments on commit 4bc8c06

Please sign in to comment.