How to filter out hands with straddle

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

How to filter out hands with straddle

Postby GelaGoot » Wed Feb 28, 2024 9:52 am

I want to filter hands where I made the first raise preflop (flg_p_first_raise_made) and I have the opportunity to open the pot (flg_p_open_opp).
The problem is, that I had one session, where someone used straddle. These hands will show up in the report.
But I want to exclude these hands from the report.
So I could not find something like flg_p_facing_straddle or flg_hand_has_straddle.
There is only amt_straddle.
So how can I use this amt_straddle to find out, if this hand has a player that uses straddle so that I can exclude it from the report?
GelaGoot
 
Posts: 10
Joined: Sat Dec 03, 2022 4:42 pm

Re: How to filter out hands with straddle

Postby GelaGoot » Wed Feb 28, 2024 11:20 am

UPDATE: I tried

cash_hand_player_statistics.id_hand NOT IN (SELECT id_hand FROM cash_hand_player_statistics WHERE amt_straddle<>0.00)

But this takes forever to load.

Can I put the return value of SELECT id_hand FROM cash_hand_player_statistics WHERE amt_straddle<>0.00 into a variable and use this instead of running the query for every hand?
GelaGoot
 
Posts: 10
Joined: Sat Dec 03, 2022 4:42 pm

Re: How to filter out hands with straddle

Postby Flag_Hippo » Thu Feb 29, 2024 6:57 am

There aren't currently any hand specific filters for straddling but you could use an expression filter that pattern matches based on the hand history text from your poker site:

Code: Select all
cash_hand_histories.id_hand = cash_hand_player_statistics.id_hand and cash_hand_histories.history not like '%straddle%'

If your poker site uses different wording for straddling then you would need to edit the filter accordingly.
Flag_Hippo
Moderator
 
Posts: 15186
Joined: Tue Jan 31, 2012 7:50 am

Re: How to filter out hands with straddle

Postby GelaGoot » Thu Feb 29, 2024 8:14 am

Flag_Hippo wrote:cash_hand_histories.id_hand = cash_hand_player_statistics.id_hand and cash_hand_histories.history not like '%straddle%'


@Flag_Hippo
Thanks! This works and is very quick.
GelaGoot
 
Posts: 10
Joined: Sat Dec 03, 2022 4:42 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 27 guests

cron
highfalutin