Some basic database questions

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

Some basic database questions

Postby trackersmacker » Mon Jul 05, 2010 12:54 pm

Hi,

1) Is there anything in the database that indicates if the tournament is finished or still running? i know there is an endtimestamp column but that seems to be updated every hand before the tournament even ends
2) Is there anything in the database that indicates if the tournament result was manually added?
3) Is there anything in the database or config files that indicates if auto import is running?

I'm writing a small program that works of the database and i need to know those 3 things so any help is welcome.
So i need to know if the tournament is finished or running, if any results were added manually and also if auto import is running
trackersmacker
 
Posts: 1
Joined: Mon Jul 05, 2010 12:46 pm

Re: Some basic database questions

Postby kraada » Mon Jul 05, 2010 2:59 pm

If there are no results for a player yet val_finish is set to 0. Manually entered results are not distinguished from results entered automatically and there is no way that I'm aware of to check to see if a tournament is completed - PT3 only knows what it gets from the hand histories. One thing you could try looking at is the date_imported on the hands - if the tournament is in progress and being imported to the date_imported for the most recent hand for that tournament is likely not more than a minute or two old. But if you've already busted then it's just not possible for PT3 to know if the tournament is completed.

As far as I'm aware there's nothing in the database to tell you if auto import is currently running, but you can look in PT3 to see if it is - there's an icon on the Import tab that's red when you're auto importing.
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