by Russelldust » Fri Apr 03, 2009 2:49 pm
Mattel,
Re your results being skewed by the bad dates...
FIXING HAND HISTORIES PRIOR TO IMPORT
Until PT add support for the UK-format dates, you can work around the problem by manually editing the hand histories BEFORE importing them. To do so, boot up Notepad, and use Edit/Replace to replace all instances of "(UK): 01/04/2009" with "2009-04-01" (without the quotes). Obviously, substitute the appropriate dates.
FIXING BAD DATES FOR ALREADY-IMPORTED TOURNAMENTS
There is no quick-fix for bad dates that have already made their way into your database. As far as I can see, you have to zap the offending tournaments completely from the database, then manually edit the hand histories and re-import them as described above.
Merely re-importing the doctored hand histories, without first deleting those tournaments from the database, has no effect. PT seems to think "oh, I've already imported this tournament - no need to import it again". Thus, it does not correct the dates.
I have found that PT does let you purge games on a tournament-by-tournament basis. Go to the Database menu / Database Management. Click the "Purge..." button. Go to the Tournaments tab, and find the offending tournaments with the bad dates. You can multiple-select tournaments by holding down the CTRL or SHIFT keys while clicking. Once you have selected all the tournaments you want to zap, click "Purge Selected".
Now you are ready to import your doctored hand histories.
IF YOU HAVE MANUALLY ENTERED TOURNAMENT DATA
Purging tournaments from your database loses any information you have entered manually. For example, after a poker session, I usually type in the number of entrants, the number of rebuys/addons I purchased, and so on, for each game.
You need to take additional steps to back up this information before purging those tournaments. Otherwise, you will have to re-enter all the data manually.
Prior to purging, you should export your PT database. Again from the Database Management dialogue, click "Export..." then go to the "Tournament Hands" tab. By default it will export your whole database, but you can use the filters to narrow down the selection, e.g. all iPoker games since 01-Jan-2009. Then click "Export Hands". Decide where to put the exported data and click "Ok". This exports not just the hands but also the tournament summaries, which are what we are interested in.
There is one more step. The tournament summaries, which we have just exported, contain the bad dates! So you need to fix them using Notepad. The summary files have obvious filenames like "iPoker_TnySumExport_200904020034_01601.txt". For each offending tournament, change both instances of "2009/01/04" to "2009/04/01" using Edit/Replace.
Now you have your tournament results data backed up, you can purge the offending tournaments, re-import the doctored hand histories, and finally re-import the doctored tournament summaries.
SO TO RECAP...
* Export your PT database (IF you need to back up tournament summary data that you have entered manually).
* Fix the bad dates in the exported tournament summaries.
* Purge the offending tournaments.
* Doctor your hand histories (using Notepad's Replace function to change the dates to the format YYYY-MM-DD).
* Import the doctored hand histories.
* Import the doctored tournament summaries (IF you backed them up as described above).
I hope this is helpful, and that I haven't left out any steps! :)