Skip to content

Commit 234ebdf

Browse files
authored
positional arguments of show_interests() were wrong
- within `add_interests()` and `delete_interests()` - made them explicit
1 parent 47c5124 commit 234ebdf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

matchdb/matchdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def add_interests(user_id: str, # unique identifier to authenticate users
127127
key = check[0]["key"]
128128

129129
# get a list of existing interests
130-
current = show_interests(user_id, group_id, database_name, project_key)
130+
current = show_interests(user_id=user_id, group_id=group_id, database_name=database_name, project_key=project_key)
131131

132132
# concat the new interest(s) to the existing list
133133
# only add unique interests i.e. no duplicates
@@ -159,7 +159,7 @@ def delete_interests(user_id: str, # unique identifier to authenticate users
159159

160160
if group_id is not None:
161161
# get a list of existing interests
162-
current = show_interests(user_id, group_id, database_name, project_key)
162+
current = show_interests(user_id=user_id, group_id=group_id, database_name=database_name, project_key=project_key)
163163

164164
# check if the thing they want to delete is in the list at all
165165
# https://stackoverflow.com/questions/20238281/check-whether-an-item-in-a-list-exist-in-another-list-or-not-python#

notebooks/00_pymatch.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
" key = check[0][\"key\"]\n",
313313
" \n",
314314
" # get a list of existing interests\n",
315-
" current = show_interests(user_id, group_id, database_name, project_key)\n",
315+
" current = show_interests(user_id=user_id, group_id=group_id, database_name=database_name, project_key=project_key)\n",
316316
" \n",
317317
" # concat the new interest(s) to the existing list\n",
318318
" # only add unique interests i.e. no duplicates\n",
@@ -359,7 +359,7 @@
359359
" \n",
360360
" if group_id is not None:\n",
361361
" # get a list of existing interests\n",
362-
" current = show_interests(user_id, group_id, database_name, project_key)\n",
362+
" current = show_interests(user_id=user_id, group_id=group_id, database_name=database_name, project_key=project_key)\n",
363363
"\n",
364364
" # check if the thing they want to delete is in the list at all\n",
365365
" # https://stackoverflow.com/questions/20238281/check-whether-an-item-in-a-list-exist-in-another-list-or-not-python#\n",

0 commit comments

Comments
 (0)