add GIGABOOSTED_HOLES
parent
8f03203dde
commit
ff855c049f
|
@ -11,11 +11,11 @@ SNAPPY_MARSEYS = []
|
||||||
SNAPPY_QUOTES = []
|
SNAPPY_QUOTES = []
|
||||||
SNAPPY_QUOTES_FISTMAS = []
|
SNAPPY_QUOTES_FISTMAS = []
|
||||||
SNAPPY_QUOTES_HOMOWEEN = []
|
SNAPPY_QUOTES_HOMOWEEN = []
|
||||||
STEALTH_HOLES = []
|
GIGABOOSTED_HOLES = []
|
||||||
NSFW_EMOJIS = []
|
NSFW_EMOJIS = []
|
||||||
|
|
||||||
def const_initialize():
|
def const_initialize():
|
||||||
global MARSEYS_CONST, MARSEYS_CONST2, MARSEY_MAPPINGS, SNAPPY_KONGS, SNAPPY_MARSEYS, SNAPPY_QUOTES, SNAPPY_QUOTES_FISTMAS, SNAPPY_QUOTES_HOMOWEEN, STEALTH_HOLES, NSFW_EMOJIS
|
global MARSEYS_CONST, MARSEYS_CONST2, MARSEY_MAPPINGS, SNAPPY_KONGS, SNAPPY_MARSEYS, SNAPPY_QUOTES, SNAPPY_QUOTES_FISTMAS, SNAPPY_QUOTES_HOMOWEEN, GIGABOOSTED_HOLES, NSFW_EMOJIS
|
||||||
|
|
||||||
db = db_session()
|
db = db_session()
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ def const_initialize():
|
||||||
SNAPPY_KONGS = db.query(Emoji.name).filter(Emoji.kind=="Donkey Kong", Emoji.submitter_id==None, Emoji.nsfw == False).all()
|
SNAPPY_KONGS = db.query(Emoji.name).filter(Emoji.kind=="Donkey Kong", Emoji.submitter_id==None, Emoji.nsfw == False).all()
|
||||||
SNAPPY_KONGS = [f':#{x[0]}:' for x in SNAPPY_KONGS]
|
SNAPPY_KONGS = [f':#{x[0]}:' for x in SNAPPY_KONGS]
|
||||||
|
|
||||||
STEALTH_HOLES = [x[0] for x in db.query(Hole.name).filter_by(stealth=True)]
|
GIGABOOSTED_HOLES = [x[0] for x in db.query(Hole.name).filter_by(stealth=True)] + ['highrollerclub','countryclub']
|
||||||
|
|
||||||
NSFW_EMOJIS = [x[0] for x in db.query(Emoji.name).filter_by(nsfw=True)]
|
NSFW_EMOJIS = [x[0] for x in db.query(Emoji.name).filter_by(nsfw=True)]
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
send_notification(AEVANN_ID, target.permalink)
|
send_notification(AEVANN_ID, target.permalink)
|
||||||
elif SITE == 'rdrama.net' and target.author_id == 29:
|
elif SITE == 'rdrama.net' and target.author_id == 29:
|
||||||
mul = 4
|
mul = 4
|
||||||
elif cls == Post and (target.effortpost or target.hole == 'countryclub'):
|
elif cls == Post and (target.effortpost or target.hole in GIGABOOSTED_HOLES):
|
||||||
mul = 4
|
mul = 4
|
||||||
elif target.author.progressivestack or (IS_HOMOWEEN() and target.author.zombie < 0) or target.author.admin_level >= PERMS['IS_PERMA_PROGSTACKED']:
|
elif target.author.progressivestack or (IS_HOMOWEEN() and target.author.zombie < 0) or target.author.admin_level >= PERMS['IS_PERMA_PROGSTACKED']:
|
||||||
mul = 2
|
mul = 2
|
||||||
|
@ -172,8 +172,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
or any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \
|
or any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \
|
||||||
or (target.domain in BOOSTED_SITES and not target.url.startswith('/')):
|
or (target.domain in BOOSTED_SITES and not target.url.startswith('/')):
|
||||||
mul = 2
|
mul = 2
|
||||||
elif target.hole in STEALTH_HOLES + ['highrollerclub']:
|
|
||||||
mul = 2
|
|
||||||
elif target.hole in BOOSTED_HOLES:
|
elif target.hole in BOOSTED_HOLES:
|
||||||
mul = 1.25
|
mul = 1.25
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue