Skip to content

Commit ccb712c

Browse files
lambda function output has been corrected (#79)
1 parent fb2c73e commit ccb712c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/mens_t20i_data_collector/_lambdas/extract_deliverywise_cricsheet_data/extract_deliverywise_cricsheet_data_lambda_function.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,4 @@ def _get_delivery_data_of_single_delivery( # pylint: disable=[too-many-argument
207207
def handler(json_file_key, match_id):
208208
extractor = DeliverywiseCricsheetDataExtractionHandler(match_id)
209209
extractor.extract_deliverywise_cricsheet_data(json_file_key)
210-
return {
211-
"statusCode": 200,
212-
"body": "Data Processed successfully"
213-
}
210+
return f"Deliverywise data has been successfully extracted for match_id - {match_id}."

src/mens_t20i_data_collector/_lambdas/extract_matchwise_cricsheet_data/extract_matchwise_cricsheet_data_lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ def _store_dataframe_in_mongodb(self, match_data: Dict) -> None:
116116
def handler(json_file_key, match_id):
117117
matchwise_cricsheet_data_extraction_handler = MatchwiseCricsheetDataExtractionHandler(match_id)
118118
matchwise_cricsheet_data_extraction_handler.extract_matchwise_cricsheet_data(json_file_key)
119-
return "Matchwise cricsheet data extraction completed successfully!"
119+
return f"Matchwise data has been successfully extracted for match_id - {match_id}."

0 commit comments

Comments
 (0)