diff --git a/files/classes/user.py b/files/classes/user.py index dfb4348ac9..31ba523374 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -188,6 +188,7 @@ class User(Base): @property @lazy def is_cakeday(self): + if SITE_NAME != 'rDrama': return False if time.time() - self.created_utc > 363 * 86400: date = time.strftime("%d %b", time.gmtime(self.created_utc)) now = time.strftime("%d %b", time.gmtime()) diff --git a/files/routes/login.py b/files/routes/login.py index 949b9834af..d8ae9dae24 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -324,8 +324,6 @@ def sign_up_post(v): profileurl = '/e/' + random.choice(marseys_const) + '.webp' - if SITE == "watchpeopledie.co": print(f'1: {username}') - new_user = User( username=username, original_username = username, @@ -337,13 +335,9 @@ def sign_up_post(v): profileurl=profileurl ) - if SITE == "watchpeopledie.co": print(f'2: {username}') - g.db.add(new_user) g.db.flush() - if SITE == "watchpeopledie.co": print(f'3: {username}') - if ref_id: ref_user = g.db.query(User).filter_by(id=ref_id).one_or_none() @@ -374,12 +368,8 @@ def sign_up_post(v): session["session_id"] = token_hex(49) session["lo_user"] = new_user.id - if SITE == "watchpeopledie.co": print(f'4: {username}') - g.db.commit() - if SITE == "watchpeopledie.co": print(f'5: {username}') - return redirect(SITE_FULL) diff --git a/files/templates/header.html b/files/templates/header.html index 035fe3023f..8c9c9cc5aa 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -27,8 +27,13 @@ {% endif %} -