The strings (names) as stored in database should always be UTF-8;
whatever the display locale is, we then need to convert from the storage
encoding to session encoding. When making database queries with players
names in them, the names must be reconverted to UTF-8.
Only prints some of the session breakdown to stdout at the moment,
otherwise is a copy of PlayerStats with a bunch of stuff commented out.
Looks like:
DEBUG: len(times) 337
DEBUG: len(diffs) 336
DEBUG: len(index[0]) 2
DEBUG: index [54 88]
DEBUG: index[0][0] 54
Hands in session 0: 54 Start: 22/03/2009 07:04 End: 22/03/2009
07:49 Total: 2669
Hands in session 1: 33 Start: 24/03/2009 17:10 End: 24/03/2009
17:35 Total: 1482
I think the Total number has an index incorrect at the moment.