Cash reults from 1970!?

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

Re: Cash reults from 1970!?

Postby Lefty Mcdog » Sat Sep 06, 2008 11:43 am

WhiteRider wrote:
Lefty Mcdog wrote:Oh joy, I have the same problem and the only way to fix it is to create an entire new database and import all hand histories over again? Whenever I create a new database and import hand histories I have to do all my tourney/SNG stats over again manually which would take a long time now that I have a ton to fill in. PT3 blows.

If you can live with this for a while you will be able to remove those incorrect sessions and re-import just them.
I don't have an ETA for this, though. I'm hoping the Development Timeline will be updated soon.
State of PokerTracker - First Edition.


WhiteRider - would it be possible to remove these sessions from the database manually in a psql window? Or is the data spread around in too many tables? If its possible could you give me the psql commands I would need to run? Thanks
Lefty Mcdog
 
Posts: 3
Joined: Sun Jul 20, 2008 3:00 pm

Re: Cash reults from 1970!?

Postby WhiteRider » Sat Sep 06, 2008 12:01 pm

I'm sure it's possible, but it's pretty complicated because as you say it's all tied together.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Cash reults from 1970!?

Postby pooriver » Wed Sep 10, 2008 6:08 am

I now have a similar problem with SnGs: On the winnings tab PT3 states I played 4 SnGs in January 1970. I then switched to the tournaments tab and sorted by date. Couldn't find tournaments with such a date. So I fetched the records directly from DB using SQL. I noted down the Tourney # of the malicious records and again tried to find these on the tournaments tab. The tourneys were actually there, but with correct dates (which is funny, cause the db record says 1970 - obviously PT3 stores dates in more than one field...). The only thing that all the tourneys had in common is: They're all from PartyGaming and PT3 stored a $0 total-buyin for them, which is wrong - they all had normal buyins.

In case anyone has that problem too, here's what I did to fix it manually (use at own risk, this may corrupt your db) :
    * start pgAdmin III
    * connect to your DB server (right-click, connect)
    * click on the SQL-query button in the toolbox
    * enter: SELECT * FROM tourney_holdem_summary WHERE date_start < '1971-01-01 00:00:00'
    * press F5
    * you now see all tourney records with invalid date, note down the values from column tourney_no (not id_tourney!)
    * go back to pt3, switch to the tournaments tab and find the affected tourneys using the tourney # you just noted.
    * for each tourney note the correct start and end dates (i assume it will display the correct date for you in pt3 since it did that for me too)
    * also note the correct amount of buyin / rake for each tourney (if you can't remember select a hand from the tourney and look it up in the hand history)
    * go back to pgAdmin III
    * click on the SQL-query button again to open a new SQL query window
    * for each record in the first SQL window enter the following: UPDATE tourney_holdem_summary SET date_start = DATESTART, date_end = DATEEND, amt_buyin = BUYIN, amt_rake = RAKE WHERE id_tourney = TOURNEYID
    Instead of DATESTART/DATEEND you write the start/end dates in format 'yyyy-mm-dd hh:mm:ss'
    Be sure to enclose each date with single quotes.
    Instead of BUYIN you write the amount of buyin (without rake)
    Instead of RAKE you write the rake paid
    Instead of TOURNEYID you write the record id for the tournament you want to modify. You find the record id in the column id_tourney of the first SQL window.
    * doublecheck everything, especially the WHERE clause
    * pray
    * press F5
Write and execute separate UPDATE statements for each record you want to modify. Don't try to modify them all in one run. (possible, but error-prone)
pooriver
 
Posts: 41
Joined: Fri May 30, 2008 4:13 am
Location: Germany / Munich

Previous

Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: Amazonbot and 34 guests

cron