Skip to content

Commit

Permalink
fix ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 19, 2024
1 parent fd4b5bf commit d581d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boa/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def from_sql_tuple(cls, values):
ret["receipt_dict"] = json.loads(ret["receipt_dict"])
if ret["source_code"] is not None:
ret["source_code"] = json.loads(ret["source_code"])
return ret
return cls(**ret)



Expand Down Expand Up @@ -82,7 +82,7 @@ def insert_deployment(self, deployment: Deployment):
self.db.commit()

def get_deployments_from_sql(self, sql_query: str, parameters=(), /):
cur = self.db.execute(sql_query, parameters=parameters)
cur = self.db.execute(sql_query, parameters)
ret = [Deployment.from_sql_tuple(item) for item in cur.fetchall()]
return ret

Expand Down

0 comments on commit d581d33

Please sign in to comment.