Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions task_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def uncomplete_all_tasks(username):


def lms_status_change(username, lms_status):
coll = mydb['taskAccounts']
coll = mydb['taskLists']
coll.update_one({'username': username}, {'$set': {'lmsEnabled': lms_status}})


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


def official_status_change(username):
coll = mydb['taskAccounts']
coll = mydb['taskLists']
coll.update_one({'username': username}, {'$set': {'isOfficial': False}})


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


def username_change(username, username_value):
coll = mydb['taskAccounts']
coll = mydb['taskLists']
doc_count_new_username = coll.count_documents({'username': username_value})
if doc_count_new_username != 0:
error = 'Username already exists'
Expand Down