From ed3ab121d06deba5ead6b0b61db23403f2d84bc4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 16 Aug 2023 22:13:11 +0300 Subject: [PATCH] do what g-sex wants --- files/helpers/config/const.py | 9 ++++----- files/helpers/sorting_and_time.py | 4 +++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index a81a29e7eb..94cff0a120 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -577,6 +577,7 @@ PROGSTACK_ID = 4 CARP_ID = 0 AEVANN_ID = 0 SNAKES_ID = 0 +GTIX_ID = 0 JUSTCOOL_ID = 0 LAWLZ_ID = 0 TGTW_ID = 0 @@ -846,6 +847,7 @@ elif SITE == 'watchpeopledie.tv': CARP_ID = 48 AEVANN_ID = 9 SNAKES_ID = 32 + GTIX_ID = 77694 GIFT_NOTIF_ID = CARP_ID SIGNUP_FOLLOW_ID = CARP_ID @@ -856,6 +858,8 @@ elif SITE == 'watchpeopledie.tv': ' capy': AEVANN_ID, 'carp': CARP_ID, 'clit': CARP_ID, + 'g-tix': GTIX_ID, + 'gtix': GTIX_ID, } TIER_TO_NAME = { @@ -1150,11 +1154,6 @@ GIRL_NAMES = { 'Z': ['Zoe', 'Zoey', 'Zaria', 'Zoie'] } -class OrgyTypes: - YOUTUBE = 1 - RUMBLE = 2 - TWITCH = 3 - from sqlalchemy.engine.create import create_engine from sqlalchemy.orm import scoped_session, sessionmaker diff --git a/files/helpers/sorting_and_time.py b/files/helpers/sorting_and_time.py index 4052c06729..ff21b5cde2 100644 --- a/files/helpers/sorting_and_time.py +++ b/files/helpers/sorting_and_time.py @@ -1,6 +1,7 @@ import time from sqlalchemy.sql import func +from flask import g from files.helpers.config.const import * @@ -27,7 +28,8 @@ def apply_time_filter(t, objects, cls): def sort_objects(sort, objects, cls): - objects = objects.order_by(cls.is_banned, cls.deleted_utc) + if not (SITE == 'watchpeopledie.tv' and g.v and g.v.id == GTIX_ID): + objects = objects.order_by(cls.is_banned, cls.deleted_utc) if sort == 'hot': ti = int(time.time()) + 3600