From bad7d0e6089a46c2b31e8a06c5a38028970b5575 Mon Sep 17 00:00:00 2001 From: flalom Date: Sun, 29 Oct 2023 11:02:05 +0100 Subject: [PATCH 1/2] Add constrains on group size --- backend/src/lunchheros/db/dbFetcher.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/src/lunchheros/db/dbFetcher.py b/backend/src/lunchheros/db/dbFetcher.py index 429af96..6f9bd76 100644 --- a/backend/src/lunchheros/db/dbFetcher.py +++ b/backend/src/lunchheros/db/dbFetcher.py @@ -3,9 +3,6 @@ import json import os - - - async def get_encoded_data(time_slot: int, location: str, data): print("get_encoded_data") # Transform data @@ -19,7 +16,6 @@ async def get_encoded_data(time_slot: int, location: str, data): #return one_hot_encoded_df - def parse_user_id_tolist(test_data): data = json.loads(test_data) From eead0f7261c02ea580044b122307f48cb7e57a8c Mon Sep 17 00:00:00 2001 From: flalom Date: Sun, 29 Oct 2023 11:12:35 +0100 Subject: [PATCH 2/2] Fix naming --- backend/src/lunchheros/match/_randomize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/lunchheros/match/_randomize.py b/backend/src/lunchheros/match/_randomize.py index fd05658..31859ab 100644 --- a/backend/src/lunchheros/match/_randomize.py +++ b/backend/src/lunchheros/match/_randomize.py @@ -39,7 +39,7 @@ def _randomize_groups(group_size: int, users: list[str]) -> list[list]: return groups -def match(userids): +def matching(userids): # convert userids to list userids = parse_user_id_tolist(userids)