Mercurial > public > finance-parser
comparison get_report/app.py @ 7:7c5fb7573dd8
first working version
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Mon, 05 Jun 2023 19:06:34 +0100 |
parents | 2daf0dc08247 |
children |
comparison
equal
deleted
inserted
replaced
6:d15ccf5f1373 | 7:7c5fb7573dd8 |
---|---|
17 KeyConditionExpression=Key('pk').eq(pk) & Key('sk').begins_with(year) | 17 KeyConditionExpression=Key('pk').eq(pk) & Key('sk').begins_with(year) |
18 ) | 18 ) |
19 | 19 |
20 return { | 20 return { |
21 "statusCode": 200, | 21 "statusCode": 200, |
22 "headers": { | |
23 "Access-Control-Allow-Headers": "Content-Type", | |
24 "Access-Control-Allow-Origin": "*", | |
25 "Access-Control-Allow-Methods": "GET" | |
26 }, | |
22 "body": json.dumps({ | 27 "body": json.dumps({ |
23 "message": { | 28 "message": { |
24 "items": response['Items'], | 29 "items": response['Items'], |
25 "count": len(response['Items']) | 30 "count": len(response['Items']) |
26 } | 31 } |