pretty much ready to 'ship'
This commit is contained in:
@@ -14,14 +14,14 @@ router.get('/', (req, res) => {
|
||||
activeSessions: db.prepare('SELECT COUNT(*) as count FROM sessions WHERE is_active = 1').get(),
|
||||
totalGamesPlayed: db.prepare('SELECT COUNT(*) as count FROM session_games').get(),
|
||||
mostPlayedGames: db.prepare(`
|
||||
SELECT g.id, g.title, g.pack_name, g.play_count, g.popularity_score
|
||||
SELECT g.id, g.title, g.pack_name, g.play_count, g.popularity_score, g.upvotes, g.downvotes
|
||||
FROM games g
|
||||
WHERE g.play_count > 0
|
||||
ORDER BY g.play_count DESC
|
||||
LIMIT 10
|
||||
`).all(),
|
||||
topRatedGames: db.prepare(`
|
||||
SELECT g.id, g.title, g.pack_name, g.play_count, g.popularity_score
|
||||
SELECT g.id, g.title, g.pack_name, g.play_count, g.popularity_score, g.upvotes, g.downvotes
|
||||
FROM games g
|
||||
WHERE g.popularity_score > 0
|
||||
ORDER BY g.popularity_score DESC
|
||||
|
||||
Reference in New Issue
Block a user