diff --git a/README-CN.md b/README-CN.md
index 7544343cfd6..61ec2c60c66 100644
--- a/README-CN.md
+++ b/README-CN.md
@@ -85,6 +85,7 @@ R.I.P. 希望大家都能健康顺利的跑过终点,逝者安息。
| [Melt](https://github.com/fpGHwd) | | Strava |
| [deepinwine](https://github.com/deepinwine) | | Garmin-cn |
| [Jeffggmm](https://github.com/Jeffggmm) | | Garmin |
+| [s1smart](https://github.com/s1smart) | | Strava |
diff --git a/README.md b/README.md
index 08702043df5..f17a99d5f38 100644
--- a/README.md
+++ b/README.md
@@ -83,6 +83,7 @@ English | [简体中文](https://github.com/yihong0618/running_page/blob/master/
| [deepinwine](https://github.com/deepinwine) | | Garmin-cn |
| [Echo](https://github.com/donghao526) | | JoyRun |
| [Jeffggmm](https://github.com/Jeffggmm) | | Garmin |
+| [s1smart](https://github.com/s1smart) | | Strava |
diff --git a/output/0.jpeg b/output/0.jpeg
new file mode 100644
index 00000000000..b3a6fc92c56
Binary files /dev/null and b/output/0.jpeg differ
diff --git a/run_page/nike_sync.py b/run_page/nike_sync.py
index 3215e145f19..6de51923bc1 100644
--- a/run_page/nike_sync.py
+++ b/run_page/nike_sync.py
@@ -21,7 +21,6 @@
run_map,
)
from generator import Generator
-
from utils import adjust_time, make_activities_file
# logging.basicConfig(level=logging.INFO)
@@ -32,19 +31,20 @@ class Nike:
def __init__(self, refresh_token):
self.client = httpx.Client()
- response = self.client.post(
- TOKEN_REFRESH_URL,
- json={
- "refresh_token": refresh_token,
- "client_id": NIKE_CLIENT_ID,
- "grant_type": "refresh_token",
- },
- timeout=60,
- )
- response.raise_for_status()
-
- access_token = response.json()["access_token"]
- self.client.headers.update({"Authorization": f"Bearer {access_token}"})
+ # response = self.client.post(
+ # TOKEN_REFRESH_URL,
+ # json={
+ # "refresh_token": refresh_token,
+ # "client_id": NIKE_CLIENT_ID,
+ # "grant_type": "refresh_token",
+ # },
+ # timeout=60,
+ # )
+ # response.raise_for_status()
+
+ # access_token = response.json()["access_token"]
+ # self.client.headers.update({"Authorization": f"Bearer {access_token}"})
+ self.client.headers.update({"Authorization": f"Bearer {refresh_token}"})
def get_activities_since_timestamp(self, timestamp):
return self.request("activities/after_time", timestamp)