Skip to content

Commit

Permalink
send build number when syncing too
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Feb 18, 2019
1 parent 819d0bd commit 95ccbfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anki/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from anki.db import DB, DBError
from anki.utils import ids2str, intTime, json, platDesc, checksum, devMode
from anki.consts import *
from aqt.utils import versionWithBuild
from .hooks import runHook
import anki
from .lang import ngettext
Expand Down Expand Up @@ -585,7 +586,7 @@ def meta(self):
)
ret = self.req(
"meta", io.BytesIO(json.dumps(dict(
v=SYNC_VER, cv="ankidesktop,%s,%s"%(anki.version, platDesc()))).encode("utf8")),
v=SYNC_VER, cv="ankidesktop,%s,%s"%(versionWithBuild(), platDesc()))).encode("utf8")),
badAuthRaises=False)
if not ret:
# invalid auth
Expand Down

0 comments on commit 95ccbfd

Please sign in to comment.