Skip to content

Commit 7299196

Browse files
committed
test
1 parent fff572c commit 7299196

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
16 Bytes
Binary file not shown.

Backend/file_sender.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
aws_secret_access_key = 'WjGsy5drLpoHYwhG6RLQd/MkUuY4xSKY9UKl7GrV'
1111
bucket_name = 'learnmateai'
1212

13-
# Create an S3 client
13+
# Create an S3 client
1414
s3_client = boto3.client("s3",
1515
aws_access_key_id=aws_access_key_id,
1616
aws_secret_access_key=aws_secret_access_key)
1717
getfiles = APIRouter()
1818

1919
@getfiles.post("/get_notes_txt")
20-
async def retrieve_text_notes(email: str):
20+
async def retrieve_text_notes(email: str,topic: str):
2121
# Configure your AWS credentials and region
2222

2323

@@ -73,6 +73,7 @@ def get_cardData(email: str):
7373
file_obj = s3_client.get_object(Bucket=bucket_name, Key=file_key)
7474
file_content = file_obj["Body"].read().decode("utf-8")
7575
json_data = json.loads(file_content)
76+
7677
return json_data
7778

7879
@getfiles.post("/studyPlan")

__pycache__/main.cpython-310.pyc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)