mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2025-12-14 08:06:23 +08:00
Fix two small bugs.
This commit is contained in:
@@ -595,6 +595,7 @@ def arc_all_get(user_id):
|
||||
installid_data = ''
|
||||
devicemodelname_data = ''
|
||||
# story_data = []
|
||||
createdAt = 0
|
||||
|
||||
if x:
|
||||
scores_data = json.loads(x[1])[""]
|
||||
@@ -606,8 +607,6 @@ def arc_all_get(user_id):
|
||||
# story_data = json.loads(x[7])[""]
|
||||
if x[8]:
|
||||
createdAt = int(x[8])
|
||||
else:
|
||||
createdAt = 0
|
||||
|
||||
# c.execute('''select * from best_score where user_id = :a''',
|
||||
# {'a': user_id})
|
||||
|
||||
@@ -445,7 +445,7 @@ def add_some_random_redeem(amount, redeem_type, items):
|
||||
message = None
|
||||
conn = sqlite3.connect('./database/arcaea_database.db')
|
||||
c = conn.cursor()
|
||||
i = 0
|
||||
i = 1
|
||||
while i <= amount:
|
||||
code = random_str()
|
||||
c.execute(
|
||||
|
||||
Reference in New Issue
Block a user