-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from Baza-86/Release-0.0.6
Release 0.0.6
- Loading branch information
Showing
7 changed files
with
365 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.venv* | ||
snippits.py | ||
vpc_samples/ | ||
vpc_samples/ | ||
*pyc |
Binary file added
BIN
+476 Bytes
...PayloadCreator/PayloadCreatorLambda-h4v5b6lMGO1f-6fa45f3b-0f8b-4e4f-bfbb-89d1238ed13a.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from datetime import datetime, timedelta, date | ||
|
||
def lambda_handler(event, context): | ||
print(event.keys()) | ||
if 'generatedDate' in event.keys(): | ||
outputFileArray = event['outputFileArray'] | ||
outputCsv = event['outputCsv'] | ||
outputFileArray.append(outputCsv) | ||
outputRows = event['outputRows'] | ||
|
||
queryParams = event['queryParams'] | ||
|
||
queryParams['queryOffset'] += queryParams['queryLimit'] | ||
|
||
payload_dict = { | ||
'queryParams': queryParams, | ||
'outputFileArray': outputFileArray, | ||
'outputRows': outputRows | ||
} | ||
else: | ||
print("date to be added to output") | ||
date_yst = str(date.today() - timedelta(1)) | ||
payload_dict = { | ||
'date': date_yst, | ||
'day': date_yst.split("-")[2], | ||
'month': date_yst.split("-")[1], | ||
'year': date_yst.split("-")[0] | ||
} | ||
|
||
return payload_dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.