mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Merge pull request #458 from xxchan/xxchan/perfect-bobolink
fix: when importing from wakapi, os & editor are reversed
This commit is contained in:
commit
0160a9ae52
@ -284,8 +284,8 @@ func mapHeartbeat(
|
|||||||
// try to parse id as an actual user agent string (as returned by wakapi)
|
// try to parse id as an actual user agent string (as returned by wakapi)
|
||||||
if opSys, editor, err := utils.ParseUserAgent(entry.UserAgentId); err == nil {
|
if opSys, editor, err := utils.ParseUserAgent(entry.UserAgentId); err == nil {
|
||||||
ua = &wakatime.UserAgentEntry{
|
ua = &wakatime.UserAgentEntry{
|
||||||
Editor: opSys,
|
Editor: editor,
|
||||||
Os: editor,
|
Os: opSys,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ua = &wakatime.UserAgentEntry{
|
ua = &wakatime.UserAgentEntry{
|
||||||
|
Loading…
Reference in New Issue
Block a user