TS importing with AHK script or......

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

TS importing with AHK script or......

Postby lucas7 » Sun Jun 05, 2011 11:35 pm

Hi I'm currently doing the whole TS importing for older tourn. needing results, using the AHK script as it is described in this thread http://forumserver.twoplustwo.com/45/software/software-automatically-request-missing-tournament-summaries-stars-409085/ I was about to do that months ago but got into it just now.

As you probably know there's a problem with poker stars - max 60 TS requests per hour limit, the other thing is saving finishes of all players in a tournament by PT - while I need only the total number of all players in a tournament, my finish, and maybe finishes of players I played with.
So here we go back to known issue of PT to implement stars html/csv tournament reports files in the import function (those files we receive from PS support).

However one guy from the mentioned above 2+2 thread found easier and faster way then the AHK script, problem is while I get the main idea behind, I don't know how to use what he did and whether it's possible without Navicat. Here's that post :
I made an excel script based on the files pokerstars used to send. Basically I executed the following 2 statements (the excel formulas fill out the values in the updates):

update tourney_holdem_summary set cnt_players = '5616', tourney_no_target = '135875485' where tourney_no = '136317802';

update tourney_holdem_results set amt_won = '0.00', val_finish = '5226', amt_rebuy = '0.00', cnt_rebuy = '0' where id_tourney = (select id_tourney from tourney_holdem_summary where tourney_no = '136317802') and id_player = (select id_player from player where player_name = '<PS_user>');

Then I used Navicat to access the PT3 database and execute the updates (copy from excel and paste in Navicat). It executed thousands in just 15 seconds...

I am not pretty sure about every field in the tables, may be I missed some, but I think It worked fine.

I think Poker Tracker should implement in a next version this kind of files in the import function, because PokerStars always send these files when there are more than 200 tournaments (only!).

I love AHK, but this time I think this way is much easier... Sorry AHK guys...


I don't know how to write an excel script to copy selected rows from PS reports but maybe U know and then how to use them to update finish/amt won/players/ columns for selected tournaments in our PT database can we do that via pgAdmin ? or Navicat is necessary
lucas7
 
Posts: 14
Joined: Sun Jun 20, 2010 6:12 am
Location: Warsaw

Re: TS importing with AHK script or......

Postby WhiteRider » Mon Jun 06, 2011 3:39 am

PT3 can import your results from a PokerStars audit file (in .csv format).
See the Tournaments FAQ.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: TS importing with AHK script or......

Postby lucas7 » Tue Jun 07, 2011 10:28 pm

Yes I know that; but those are not audit files that are mentioned in my post and in the 2+2 thread; I also talk about them with you in one of my tickets with the example of such a file
Maybe if I start private ticket based on this forum subject and attach example-file again you will help me to use quoted 2+2 post .
lucas7
 
Posts: 14
Joined: Sun Jun 20, 2010 6:12 am
Location: Warsaw

Re: TS importing with AHK script or......

Postby WhiteRider » Wed Jun 08, 2011 3:40 am

I realise that the files are different, but I was just offering you an alternative since the file you have is not yet supported.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: TS importing with AHK script or......

Postby lucas7 » Fri Jun 10, 2011 8:36 am

audit files don't contain all necessary info; ok so it's not possible to somehow copy(or a script) selected data from PS files in csv/excel format and then use some postgre query to read that info and enter it to database ? I thought there's some way to do what's in the quoted post without navicat, but maybe what this guy did is much complicated.
Now I'm asking just out of curiosity cause I've already finished importing results with the ahk script method.
lucas7
 
Posts: 14
Joined: Sun Jun 20, 2010 6:12 am
Location: Warsaw

Re: TS importing with AHK script or......

Postby kraada » Fri Jun 10, 2011 9:05 am

It may be theoretically possible but it requires knowledge above and beyond what I can help you with.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests