in amazon_polly_async_batch/dynamo.py [0:0]
def put_new_set(self, s):
"""
Given a set that we will soon be processing, writes it to Dynamo for tracking
:param s: the file that we are processing
"""
now = datetime.datetime.now()
next_month = now + datetime.timedelta(days=+30)
dynamodb.put_item(
TableName=self.table_name,
Item={
'setName': {'S': s.set_name_unique()},
'originalName': {'S': s.set_name()},
'description': {'S': s.set_description()},
'items': {'N': str(s.item_count())},
'creationTime': {'S': now.isoformat()},
'updatedTime': {'S': now.isoformat()},
'expirationTime': {'S': next_month.isoformat()},
'outputPrefix': {'S': s.output_s3_key_prefix()},
'successes': {'N': '0'},
'failures': {'N': '0'}
}
)