Fix two small bugs.

This commit is contained in:
Lost-MSth
2021-01-10 16:29:18 +08:00
parent e0e6128826
commit 98358ad216
2 changed files with 2 additions and 3 deletions

View File

@@ -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})

View File

@@ -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(