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):