From 66e9491a5b20dee2b6b61c7454cfb6fcad7e85dd Mon Sep 17 00:00:00 2001 From: Bui Date: Thu, 17 Feb 2022 23:07:12 +0000 Subject: [PATCH] index scores --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 5fb216c..639c25e 100644 --- a/app.py +++ b/app.py @@ -39,6 +39,7 @@ csrf = CSRFProtect(app) db = client[config.MONGO['database']] db.users.create_index('username', unique=True) db.songs.create_index('id', unique=True) +db.scores.create_index('username') class HashException(Exception):