mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
index scores
This commit is contained in:
parent
ebc3c79c75
commit
66e9491a5b
1
app.py
1
app.py
@ -39,6 +39,7 @@ csrf = CSRFProtect(app)
|
|||||||
db = client[config.MONGO['database']]
|
db = client[config.MONGO['database']]
|
||||||
db.users.create_index('username', unique=True)
|
db.users.create_index('username', unique=True)
|
||||||
db.songs.create_index('id', unique=True)
|
db.songs.create_index('id', unique=True)
|
||||||
|
db.scores.create_index('username')
|
||||||
|
|
||||||
|
|
||||||
class HashException(Exception):
|
class HashException(Exception):
|
||||||
|
Loading…
Reference in New Issue
Block a user