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