Skip to content

Commit

Permalink
Merge pull request #3 from FDUCSLG/fix-oldInfo-name
Browse files Browse the repository at this point in the history
change info to oldInfo according to pafd get return
  • Loading branch information
ichn-hu committed Mar 12, 2021
2 parents 4cd0298 + 9e1a80f commit a80d0df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ master ]
schedule:
# run every 10 a.m., which is UTC 2 a.m + 8
# run every 10 a.m., which is UTC 2 a.m + 8
- cron: '0 2 * * *'
workflow_dispatch:

Expand All @@ -21,4 +21,4 @@ jobs:
uses: actions/checkout@v2

- name: run
run: STD_ID=${{ secrets.STD_ID }} PASSWORD=${{ secrets.PASSWORD }} python3 main.py
run: STD_ID=${{ secrets.STD_ID }} PASSWORD=${{ secrets.PASSWORD }} python3 main.py
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def checkin(self):

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

0 comments on commit a80d0df

Please sign in to comment.