Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Dec 1, 2024
1 parent 1c689af commit 768d540
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions bin/lib/library_build_history.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

from typing import Any, Dict
from lib.amazon import dynamodb_client


class LibraryBuildHistory:
def __init__(
self,
logger):
def __init__(self, logger):
self.logger = logger

def get_lib_key(self, buildparameters_obj: Dict[str, Any], commit_hash: str):
Expand Down Expand Up @@ -34,9 +32,5 @@ def success(self, buildparameters_obj: Dict[str, Any], commit_hash: str):
def insert(self, lib_key: str, compiler_key: str, success: bool):
dynamodb_client.put_item(
TableName="library-build-history",
Item={
"library": {"S": lib_key},
"compiler": {"S": compiler_key},
"success": {"BOOL": success}
},
Item={"library": {"S": lib_key}, "compiler": {"S": compiler_key}, "success": {"BOOL": success}},
)

0 comments on commit 768d540

Please sign in to comment.