Comments (4)
running_page/scripts/keep_sync.py
Line 51 in 06d308e
i["logs"][0]
这里好像只获取每天的最后一条记录,如果一天有多条数据,较早的数据被跳过了。
(只看了代码觉得有问题,还没有实测)
理论没问题,这块获取的不是最后一条。~ 记忆里是,我明天看下。
from running_page.
仔细看了下,没问题
running_page/scripts/keep_sync.py
Line 202 in 06d308e
这块获取新的 track 的逻辑在这儿。
是用 data.db 判断的。
获取新 gpx 的逻辑在这儿
running_page/scripts/keep_sync.py
Line 141 in 06d308e
from running_page.
跟 data.db 对比判断的逻辑没问题。
这个逻辑会导致从 keep api 的 json 里读数据时没有读全,漏了一些 track。
从api 返回的 json 结构如下,这里只取了第一条 logs[0].stats.id,漏了后面两条。
data:
records:
- date: 2月04日
logs:
- type: stats
stats:
id: 57b479009962c35607c65348_9223370424448641007_rn
- type: stats
stats:
id: 57b479009962c35607c65348_9223370424516957507_rn
- type: stats
stats:
id: 57b479009962c35607c65348_9223370424529356007_rn
- date: 2月03日
那行代码修改后执行了一下,找回了几条记录。
from running_page.
@Lax
哈懂了。感谢
from running_page.
Related Issues (20)
- 悦跑圈抓取数据时错误,遇到错误:Max retries exceeded with url错误。 HOT 7
- 咨询下docker的工作原理 HOT 1
- 请教, 开始从咕咚拉数据的时,没有带 --with-gpx,后续怎么得到GPX数据 HOT 3
- 如何把国家涂上色 HOT 3
- 源自华米的GPX导入轨迹漂移,且心率为空 HOT 7
- [Function enhancement] SVG info source error caused by the inability to automate JoyRun HOT 6
- 悦跑圈数据导出时出现问题,还是网络问题 HOT 2
- 同步Keep数据报错index out of range HOT 4
- github action 执行报错 HOT 9
- 从Strava中同步的活动中没有location_country的信息 HOT 2
- mac如何使用呢? HOT 1
- 二级域名代理github running_page打开页面白屏 HOT 1
- ModuleNotFoundError: No module named 'appdirs'
- 重复数据没有校验删除 HOT 5
- running_page v1.x 版本 Vercel 部署失败 HOT 2
- 同步失败是什么问题呢 HOT 3
- NRC refresh token is not getting anymore ? HOT 13
- NRC to refresh token is down
- 这段可以删除了吧,看代码现在是从gh中直接取仓库名作为路径。 HOT 2
- Strava同步数据 第6步报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from running_page.