forked from rDrama/rDrama
I hate programming
parent
914c89c301
commit
45753ee166
|
@ -25,7 +25,7 @@ def chart(kind, site):
|
|||
now.tm_wday, now.tm_yday, 0))
|
||||
today_cutoff = calendar.timegm(midnight_this_morning)
|
||||
|
||||
if site == 'rdrama.net':
|
||||
if SITE == 'rdrama.net':
|
||||
time_diff = time.time() - 1619827200
|
||||
num_of_weeks = int(time_diff / 604800)
|
||||
chart_width = int(num_of_weeks/1.4)
|
||||
|
@ -131,7 +131,7 @@ def stats(site=None):
|
|||
"users online in the past 7 days": g.db.query(User).filter(User.last_active > week).count(),
|
||||
}
|
||||
|
||||
if site == 'rDrama' or FEATURES['HOUSES']:
|
||||
if SITE_NAME == 'rDrama' or FEATURES['HOUSES']:
|
||||
stats2 = {
|
||||
"House furry members": g.db.query(User).filter(User.house.like('Furry%')).count(),
|
||||
"House femboy members": g.db.query(User).filter(User.house.like('Femboy%')).count(),
|
||||
|
|
|
@ -22,7 +22,7 @@ def front_all(v, sub=None, subdomain=None):
|
|||
if not v and not request.path.startswith('/logged_out'):
|
||||
return redirect(f"/logged_out{request.full_path}")
|
||||
|
||||
if site == 'rdrama.net' and v and v.is_banned and not v.unban_utc:
|
||||
if SITE == 'rdrama.net' and v and v.is_banned and not v.unban_utc:
|
||||
return redirect('https://deuxrama.net')
|
||||
|
||||
if v and request.path.startswith('/logged_out'):
|
||||
|
|
Loading…
Reference in New Issue