i am running the following Python code in a AWS Lambda function:

import json
import boto3
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('cloudresume')
def lambda_handler(event, context):
    response = table.get_item(Key={
        'id':'0'
    })
    views = response['Item']['views']
    views = views + 1 
    print(views)
    response = table.put_item(Item={
            'id' : '0',
            'views' : views
    })
    
    return views

the code is meant increase the page view by one. Instead, the page view is being incremented by 2. what is causing this extra increment?