Skip to content

Commit

Permalink
Update dynamodb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Jan 20, 2022
1 parent 46d7668 commit f229f59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion awd/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import boto3
from boto3.dynamodb.types import TypeDeserializer

from awd.status import Status

logger = logging.getLogger(__name__)


Expand All @@ -21,7 +23,7 @@ def add_doi_item_to_database(self, doi_table, doi):
TableName=doi_table,
Item={
"doi": {"S": doi},
"status": {"S": "2"},
"status": {"S": str(Status.PROCESSING)},
"attempts": {"S": "0"},
},
)
Expand Down

0 comments on commit f229f59

Please sign in to comment.