Fix issue with arch linux client
This commit is contained in:
parent
a55d1a35ee
commit
caf5c71b88
@ -62,11 +62,12 @@ class SyncCollectionHandler(Syncer):
|
|||||||
note = {"alpha": 0, "beta": 0, "rc": 0}
|
note = {"alpha": 0, "beta": 0, "rc": 0}
|
||||||
client, version, platform = cv.split(',')
|
client, version, platform = cv.split(',')
|
||||||
|
|
||||||
for name in note.keys():
|
if 'arch' not in version:
|
||||||
if name in version:
|
for name in note.keys():
|
||||||
vs = version.split(name)
|
if name in version:
|
||||||
version = vs[0]
|
vs = version.split(name)
|
||||||
note[name] = int(vs[-1])
|
version = vs[0]
|
||||||
|
note[name] = int(vs[-1])
|
||||||
|
|
||||||
# convert the version string, ignoring non-numeric suffixes like in beta versions of Anki
|
# convert the version string, ignoring non-numeric suffixes like in beta versions of Anki
|
||||||
version_nosuffix = re.sub(r'[^0-9.].*$', '', version)
|
version_nosuffix = re.sub(r'[^0-9.].*$', '', version)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user