diff --git a/files/assets/images/emojis/marseychadyes.webp b/files/assets/images/emojis/marseychadyes.webp new file mode 100644 index 000000000..abfd2ab0e Binary files /dev/null and b/files/assets/images/emojis/marseychadyes.webp differ diff --git a/files/assets/images/emojis/marseymobster2.webp b/files/assets/images/emojis/marseymobster2.webp new file mode 100644 index 000000000..99d5a0d7f Binary files /dev/null and b/files/assets/images/emojis/marseymobster2.webp differ diff --git a/files/assets/images/hats/Dual-Wield Katanas.webp b/files/assets/images/hats/Dual-Wield Katanas.webp new file mode 100644 index 000000000..d13d93329 Binary files /dev/null and b/files/assets/images/hats/Dual-Wield Katanas.webp differ diff --git a/files/assets/images/hats/Suicide King.webp b/files/assets/images/hats/Suicide King.webp new file mode 100644 index 000000000..c5bdc1bb6 Binary files /dev/null and b/files/assets/images/hats/Suicide King.webp differ diff --git a/files/assets/images/hats/The Lawlz.webp b/files/assets/images/hats/The Lawlz.webp new file mode 100644 index 000000000..7c6785690 Binary files /dev/null and b/files/assets/images/hats/The Lawlz.webp differ diff --git a/files/helpers/casino.py b/files/helpers/casino.py index 50a42a5bb..e7c2c7925 100644 --- a/files/helpers/casino.py +++ b/files/helpers/casino.py @@ -27,14 +27,16 @@ def get_game_feed(game): def get_game_leaderboard(game): timestamp_24h_ago = time.time() - 86400 + timestamp_all_time = 1662825600 # "All Time" starts on release day + biggest_win_all_time = g.db.query(Casino_Game.user_id, User.username, Casino_Game.currency, Casino_Game.winnings).select_from( - Casino_Game).join(User).order_by(Casino_Game.winnings.desc()).filter(Casino_Game.kind == game).limit(1).one_or_none() + Casino_Game).join(User).order_by(Casino_Game.winnings.desc()).filter(Casino_Game.kind == game, Casino_Game.created_utc > timestamp_all_time).limit(1).one_or_none() biggest_win_last_24h = g.db.query(Casino_Game.user_id, User.username, Casino_Game.currency, Casino_Game.winnings).select_from( Casino_Game).join(User).order_by(Casino_Game.winnings.desc()).filter(Casino_Game.kind == game, Casino_Game.created_utc > timestamp_24h_ago).limit(1).one_or_none() biggest_loss_all_time = g.db.query(Casino_Game.user_id, User.username, Casino_Game.currency, Casino_Game.winnings).select_from( - Casino_Game).join(User).order_by(Casino_Game.winnings.asc()).filter(Casino_Game.kind == game).limit(1).one_or_none() + Casino_Game).join(User).order_by(Casino_Game.winnings.asc()).filter(Casino_Game.kind == game, Casino_Game.created_utc > timestamp_all_time).limit(1).one_or_none() biggest_loss_last_24h = g.db.query(Casino_Game.user_id, User.username, Casino_Game.currency, Casino_Game.winnings).select_from( Casino_Game).join(User).order_by(Casino_Game.winnings.asc()).filter(Casino_Game.kind == game, Casino_Game.created_utc > timestamp_24h_ago).limit(1).one_or_none()