forked from MarseyWorld/MarseyWorld
fds
parent
0809c62a06
commit
17c71a2b54
|
@ -56,7 +56,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||||
if not pid:
|
if not pid:
|
||||||
if comment.parent_submission: pid = comment.parent_submission
|
if comment.parent_submission: pid = comment.parent_submission
|
||||||
elif request.host == "rdrama.net": pid = 6489
|
elif request.host == "rdrama.net": pid = 6489
|
||||||
elif 'pcmemes.net' == request.host: pid = 2487
|
elif request.host == 'pcmemes.net': pid = 2487
|
||||||
else: pid = 1
|
else: pid = 1
|
||||||
|
|
||||||
try: pid = int(pid)
|
try: pid = int(pid)
|
||||||
|
@ -305,7 +305,7 @@ def api_comment(v):
|
||||||
g.db.add(c_option)
|
g.db.add(c_option)
|
||||||
|
|
||||||
|
|
||||||
if 'pcmemes.net' == request.host and c.body.lower().startswith("based"):
|
if request.host == 'pcmemes.net' and c.body.lower().startswith("based"):
|
||||||
pill = re.match("based and (.{1,20}?)(-| )pilled", body, re.IGNORECASE)
|
pill = re.match("based and (.{1,20}?)(-| )pilled", body, re.IGNORECASE)
|
||||||
|
|
||||||
if level == 1: basedguy = get_account(c.post.author_id)
|
if level == 1: basedguy = get_account(c.post.author_id)
|
||||||
|
|
|
@ -384,7 +384,7 @@ def settings_profile_post(v):
|
||||||
updated = True
|
updated = True
|
||||||
|
|
||||||
quadrant = request.values.get("quadrant")
|
quadrant = request.values.get("quadrant")
|
||||||
if quadrant and 'pcmemes.net' == request.host.lower():
|
if quadrant and request.host == 'pcmemes.net'.lower():
|
||||||
v.quadrant = quadrant
|
v.quadrant = quadrant
|
||||||
v.customtitle = quadrant
|
v.customtitle = quadrant
|
||||||
if quadrant=="Centrist":
|
if quadrant=="Centrist":
|
||||||
|
|
|
@ -281,7 +281,7 @@ def leaderboard(v):
|
||||||
users4 = users.order_by(User.comment_count.desc()).limit(25).all()
|
users4 = users.order_by(User.comment_count.desc()).limit(25).all()
|
||||||
users5 = users.order_by(User.received_award_count.desc()).limit(25).all()
|
users5 = users.order_by(User.received_award_count.desc()).limit(25).all()
|
||||||
|
|
||||||
if 'pcmemes.net' == request.host: users6 = users.order_by(User.basedcount.desc()).limit(10).all()
|
if request.host == 'pcmemes.net': users6 = users.order_by(User.basedcount.desc()).limit(10).all()
|
||||||
else: users6 = None
|
else: users6 = None
|
||||||
|
|
||||||
users7 = users.order_by(User.coins_spent.desc()).limit(25).all()
|
users7 = users.order_by(User.coins_spent.desc()).limit(25).all()
|
||||||
|
|
Loading…
Reference in New Issue