From 0cac3ed55f5fe0307af3fedc8bb4c76a5a551f93 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 3 Aug 2023 11:48:02 +0300 Subject: [PATCH] dont include THOT's other bets --- files/routes/posts.py | 2 +- files/routes/special.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 7aca89372..d40982ba0 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -709,7 +709,7 @@ def submit_post(v, sub=None): p.stickied_utc = int(time.time()) + 28800 p.stickied = "AutoJanny" - if SITE == 'rdrama.net' and v.id == 7465 and "women's world cup" in p.title.lower(): + if SITE == 'rdrama.net' and v.id == 7465 and p.title.lower().startswith("women's world cup betting: "): p.stickied_utc = int(time.time()) + 28800 p.stickied = "AutoJanny" diff --git a/files/routes/special.py b/files/routes/special.py index 59b9db8bc..0f7ac83dd 100644 --- a/files/routes/special.py +++ b/files/routes/special.py @@ -18,7 +18,7 @@ WITH bet_options AS ( GROUP BY option_id ) AS cnt ON so.id = cnt.option_id WHERE p.author_id = 7465 AND p.created_utc > 1688950032 - AND so.exclusive IN (2, 3) + AND so.exclusive IN (2, 3) AND p.title ilike 'women''s world cup betting: %' ), post_payouts AS ( SELECT