Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Gaultney committed May 25, 2020
1 parent 57eedea commit d6d5d25
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## 1.0.1
### 1.0.2

- Fixed return value for `put_unless_exists`.
- Fixed type for `xoto3.dynamodb.query.From`

### 1.0.1

Corrected naming in utility.

Expand Down
2 changes: 1 addition & 1 deletion xoto3/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""xoto3"""
__version__ = "1.0.1"
__version__ = "1.0.2"
__author__ = "Peter Gaultney"
__author_email__ = "[email protected]"
2 changes: 2 additions & 0 deletions xoto3/dynamodb/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def put_unless_exists(Table: TableResource, item: InputItem) -> Tuple[Optional[E
ConditionExpression=item_not_exists(Table.key_schema),
ReturnValues="ALL_OLD",
)
if not already_exists_cerror:
return None, dict(item)
return already_exists_cerror, response["Item"]


Expand Down
2 changes: 1 addition & 1 deletion xoto3/dynamodb/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def tx_query(query: TableQuery) -> TableQuery:
return tx_query


def From(last_evaluated_key: str):
def From(last_evaluated_key: dict):
def tx_query(query: TableQuery) -> TableQuery:
return dict(query, ExclusiveStartKey=last_evaluated_key) if last_evaluated_key else query

Expand Down

0 comments on commit d6d5d25

Please sign in to comment.