@@ -87,8 +87,6 @@ def __init__(self, imms: dict, vax_type: str, supplier: str, version: int):
8787
8888
8989class ImmunizationBatchRepository :
90- def __init__ (self ):
91- pass
9290
9391 def create_immunization (
9492 self , immunization : any , supplier_system : str , vax_type : str , table : any , is_present : bool
@@ -252,7 +250,7 @@ def _perform_dynamo_update(
252250 else Attr ("PK" ).eq (attr .pk ) & Attr ("DeletedAt" ).not_exists ()
253251 )
254252 if deleted_at_required and update_reinstated == False :
255- ExpressionAttributeValues = {
253+ expression_attribute_values = {
256254 ":timestamp" : attr .timestamp ,
257255 ":patient_pk" : attr .patient_pk ,
258256 ":patient_sk" : attr .patient_sk ,
@@ -263,7 +261,7 @@ def _perform_dynamo_update(
263261 ":respawn" : "reinstated" ,
264262 }
265263 else :
266- ExpressionAttributeValues = {
264+ expression_attribute_values = {
267265 ":timestamp" : attr .timestamp ,
268266 ":patient_pk" : attr .patient_pk ,
269267 ":patient_sk" : attr .patient_sk ,
@@ -279,7 +277,7 @@ def _perform_dynamo_update(
279277 ExpressionAttributeNames = {
280278 "#imms_resource" : "Resource" ,
281279 },
282- ExpressionAttributeValues = ExpressionAttributeValues ,
280+ ExpressionAttributeValues = expression_attribute_values ,
283281 ReturnValues = "ALL_NEW" ,
284282 ConditionExpression = condition_expression ,
285283 )
0 commit comments