Don't show banned users on the leaderboard

This commit is contained in:
Ajay Ramachandran
2020-07-26 11:26:51 -04:00
parent 4bfa5e7de8
commit 986c9dcf5f
2 changed files with 7 additions and 2 deletions

View File

@@ -32,10 +32,13 @@ if (config.mysql) {
if (fs.existsSync(config.privateDBSchema)) privateDB.exec(fs.readFileSync(config.privateDBSchema).toString());
}
// Upgrade database if required
if (!config.readOnly) {
// Upgrade database if required
ugradeDB(db, "sponsorTimes");
ugradeDB(privateDB, "private")
// Attach private db to main db
db.prepare("ATTACH ? as privateDB").run(config.privateDB);
}
// Enable WAL mode checkpoint number