Anki/pylib/anki
Damien Elmes 73679b03e7 possible fix for sync button colour blue after sync
If the client's clock is behind AnkiWeb's, even by a few seconds,
we can end up with a situation where last_begin_at is updated after
the sync to a value less than the mtime we received from AnkiWeb,
causing the collection to be saved, which bumps the modtime.

Work around this by recording mtime at begin() time, and seeing if it
has changed in either direction.

Thanks to Rumo, who did the hard work looking into it:
https://forums.ankiweb.net/t/why-is-my-sync-button-blue/2078/21
2020-12-21 19:27:26 +10:00
..
importing update remaining python format strings to Fluent 2020-11-22 14:57:53 +10:00
__init__.py add coding specifier to anki/__init__.py 2020-11-11 21:51:11 +10:00
_rsbridge.pyi add type stub for _rsbridge to make PyCharm happy 2020-12-16 13:13:42 +10:00
backend_pb2.pyi symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
BUILD.bazel symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
buildinfo.py fix some warnings on startup 2020-12-16 15:38:24 +10:00
cards.py rename some card+note fields in backend 2020-09-01 10:24:38 +10:00
collection.py possible fix for sync button colour blue after sync 2020-12-21 19:27:26 +10:00
config.py fix new pylint raise-missing-from lint 2020-08-31 12:04:14 +10:00
consts.py merge pylib references 2020-11-17 19:23:06 +10:00
db.py Added super().__repr__() to new __repr__() calls 2020-05-31 19:39:19 -03:00
dbproxy.py possible fix for sync button colour blue after sync 2020-12-21 19:27:26 +10:00
decks.py tweak naming and move method into col.decks 2020-12-20 10:26:16 +10:00
errors.py Monkeytype pylib/anki/errors.py 2020-02-27 00:07:19 -05:00
exporting.py Fix description of exporters 2020-11-19 23:52:46 +03:00
find.py use keyword args for calls with more than one argument 2020-05-24 09:12:47 +10:00
fluent_pb2.pyi symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
hooks.py initial Bazel conversion 2020-11-01 14:26:58 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
httpclient.py Fixed HttpClient session not being closed 2020-05-20 19:20:41 -03:00
lang.py expose Gaelic in language selection 2020-11-30 14:44:29 +10:00
latex.py update temporary val="%s" references to standard ftl 2020-11-17 22:00:44 +10:00
media.py cleanup / renames 2020-11-10 14:53:04 +01:00
models.py merge pylib references 2020-11-17 19:23:06 +10:00
notes.py rename some card+note fields in backend 2020-09-01 10:24:38 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
rsbackend.py exhaustiveness checks on literals are now possible with the move to py38 2020-12-18 16:50:55 +10:00
rsbackend_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
sched.py move filtered deck empty/fill to backend 2020-09-02 17:56:23 +10:00
schedv2.py merge pylib references 2020-11-17 19:23:06 +10:00
sound.py support speed control in tts tags 2020-01-26 14:31:07 +10:00
stats.py drop i18n references in old stats 2020-11-18 09:12:03 +10:00
statsbg.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
stdmodels.py fix typechecking breaking with latest mypy_protobuf 2020-05-27 09:14:02 +10:00
storage.py storage->collection 2020-05-20 17:58:28 +10:00
sync.py login/full up/full down plugged in 2020-06-01 13:57:10 +10:00
tags.py Added super().__repr__() to new __repr__() calls 2020-05-31 19:39:19 -03:00
template.py fix audio being included in FrontSide 2020-06-09 08:16:03 +10:00
template_legacy.py fix remaining _() references; remove unused imports 2020-11-18 12:43:46 +10:00
types.py exhaustiveness checks on literals are now possible with the move to py38 2020-12-18 16:50:55 +10:00
utils.py update to latest isort, pylint and pytest 2020-08-31 12:05:36 +10:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00