Skip to content

Commit

Permalink
change: update api url
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiyu committed Mar 16, 2023
1 parent 54e023b commit 60f5146
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mktools_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ def get_token():
if isinstance(token, str):
return token

token = simpledialog.askstring("mktools", "Access https://nita.ebiyuu.com/access-token/ and paste token!!")
token = simpledialog.askstring("mktools", "Access https://mktools.ebiyuu.com/access-token/ and paste token!!")
creds["access-token"] = token
with open(path, "w") as f:
json.dump(creds, f)
return token

def register_record(time, track, comment):
requests.post(
"https://nita.ebiyuu.com/api/record/",
"https://mktools.ebiyuu.com/api/record/",
json={
"time": time,
"track": track,
Expand All @@ -45,7 +45,7 @@ def get_track_info(track_id):
return track_cache[track_id]

res = requests.get(
f"https://nita.ebiyuu.com/api/track/{track_id}/",
f"https://mktools.ebiyuu.com/api/track/{track_id}/",
headers={
"Authorization": "Token " + get_token(),
},
Expand Down

0 comments on commit 60f5146

Please sign in to comment.