add random music data
This commit is contained in:
parent
a221b8a2dd
commit
efc874ab9f
19
.settings.py
19
.settings.py
@ -1,12 +1,19 @@
|
||||
# This file contains the config of the whole project.
|
||||
# DO NOT share your crtical info to others.
|
||||
# Change the file name from .settings.py to settings.py.
|
||||
import random
|
||||
|
||||
with open('music.json') as file:
|
||||
music = json.load(file)
|
||||
|
||||
# 上传的乐曲成绩
|
||||
# 此成绩将覆盖原有成绩
|
||||
|
||||
music_data = ({
|
||||
"musicId":834,"level":4,"playCount":10,"achievement":912231,"comboStatus":0,"syncStatus":0,"deluxscoreMax":2106,"scoreRank":5, "extNum1": 0
|
||||
"musicId": music[random.randint(0, 500)],
|
||||
"level": random.randint(0, 3),
|
||||
"playCount": random.randint(10, 20),
|
||||
"achievement": random.randint(995000, 1000000),
|
||||
"comboStatus": random.randint(0, 2),
|
||||
"syncStatus": 0,
|
||||
"deluxscoreMax": random.randint(1300, 1500),
|
||||
"scoreRank": 11,
|
||||
"extNum1": 0
|
||||
})
|
||||
|
||||
# 机厅信息
|
||||
|
Loading…
x
Reference in New Issue
Block a user