Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.invite_link = data["invite_link"]
else:
self.invite_link = None
if "country_code" in data:
self.country_code = data["country_code"]
else:
self.country_code = None
self.original_debts = []
for debt in data["original_debts"]:
self.original_debts.append(Debt(debt))
self.simplified_debts = []
for debt in data["simplified_debts"]:
self.simplified_debts.append(Debt(debt))
self.members = []
for member in data["members"]:
self.members.append(Friend(member))
else:
self.deleted_by = None
if "friendship_id" in data:
self.friendship_id = data["friendship_id"]
else:
self.friendship_id = None
if "expense_bundle_id" in data:
self.expense_bundle_id = data["expense_bundle_id"]
else:
self.expense_bundle_id = None
self.repayments = []
for repayment in data["repayments"]:
self.repayments.append(Debt(repayment))
self.users = []
for user in data["users"]:
self.users.append(ExpenseUser(user))
if "transaction_id" in data:
self.transaction_id = data["transaction_id"]
else:
self.transaction_id = None