Commit Graph

12 Commits

Author SHA1 Message Date
Mike Blume
dcf097b55f use futuristic division
Python used to use C-style division, where division of two ints was
truncated, and division involving a float resulted in a float.

This is confusing, because you often can't tell from looking at a
line of code in isolation what sort of division it's supposed to do.

With 'from __future__ import division' Python ensures that division is
always explicit.

// means (floored) integer division
/ means float division

regardless of argument types.

This should make the source a bit clearer now, as well as removing one
obstacle if Anki is ever ported to Python 3.
2013-05-05 11:09:16 -07:00
Damien Elmes
e64d825730 fix some sync issues
- better error message when upload fails
- don't show success message on error
- fix 'unable to find server' accidentally being catchall
2013-03-01 01:36:14 +09:00
ospalh
6a93767f80 The longer full sync explanation was missing a backslash.
The "automatically" appeared on a line by itself.
2013-02-27 11:36:15 +01:00
Damien Elmes
ab5d521512 tweak sync conflict msg 2013-02-27 14:07:11 +09:00
Damien Elmes
45ae2cbbfb another firewall error 2013-02-12 02:06:03 +09:00
Damien Elmes
8ce6bd8b79 catch another firewall error 2013-02-07 19:58:17 +09:00
Damien Elmes
073f129ab8 fix media sanity fail being identified as normal sanity error 2013-01-29 09:05:55 +09:00
Damien Elmes
8d66578d43 move sanity check to server and automatically force full sync
- server will log mismatches so we don't require people to post on the forums
  anymore or manually force a full sync
- if we find problems like missing notes, report that in the sanity check so
  the server can keep track of problems
- when the server detects a conflict it can immediately abort the sync, so a
  subsequent sync will no longer report a conflict
2013-01-18 09:17:12 +09:00
Damien Elmes
ce2581269b make sure we always turn error into unicode (#488) 2013-01-15 07:28:48 +09:00
Damien Elmes
c6adf1dda8 set auth dialog to window modal 2013-01-08 10:36:04 +09:00
Damien Elmes
b2457811a2 optimize imports 2012-12-22 09:17:10 +09:00
Damien Elmes
d477df8c28 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00