- Added a 0th hand to the start of the winnings array
- Miscalculating number of hands again
High/Low watermark values appear to be much more accurate, as do max/min values for the session.
- updated copyright notices
- added copyright notices that were missing
- changed python to python2
- added gpl-2/3 license texts
- removed THANKS.txt file as the wiki version is more up to date
- removed empty fpdb_db.py
- added GPL2 to debian license file
Fix a couple of crashers
- Make sure last session in list is displayed correctly
- Actually calculate hands/hour (Thanks Socratic)
- Make graph display the correct number of sessions
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.