Skip to content

Commit 028d7de

Browse files
committed
fix-change-username
1 parent f587acb commit 028d7de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

task_database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def uncomplete_all_tasks(username):
855855

856856

857857
def lms_status_change(username, lms_status):
858-
coll = mydb['taskAccounts']
858+
coll = mydb['taskLists']
859859
coll.update_one({'username': username}, {'$set': {'lmsEnabled': lms_status}})
860860

861861

@@ -875,7 +875,7 @@ def lms_status_change(username, lms_status):
875875

876876

877877
def official_status_change(username):
878-
coll = mydb['taskAccounts']
878+
coll = mydb['taskLists']
879879
coll.update_one({'username': username}, {'$set': {'isOfficial': False}})
880880

881881

@@ -897,7 +897,7 @@ def official_status_change(username):
897897

898898

899899
def username_change(username, username_value):
900-
coll = mydb['taskAccounts']
900+
coll = mydb['taskLists']
901901
doc_count_new_username = coll.count_documents({'username': username_value})
902902
if doc_count_new_username != 0:
903903
error = 'Username already exists'

0 commit comments

Comments
 (0)