From f096817761f6d323ba27ec8264b1d7f2653cbbca Mon Sep 17 00:00:00 2001 From: ICTman1076 <16071013+ICTman1076@users.noreply.github.com> Date: Tue, 2 Feb 2021 13:16:19 +0000 Subject: [PATCH] Imagine making breaking changes to your api minutes after the wrapper is uploaded to pypi --- orpim_api/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orpim_api/__init__.py b/orpim_api/__init__.py index 14491ee..77edb2b 100644 --- a/orpim_api/__init__.py +++ b/orpim_api/__init__.py @@ -6,9 +6,9 @@ def __init__(self, data, target=None): self.rawData = data if target != None: self.id = None - self.sub = data["final_domain"].split(".")[0] - self.domain = ".".join(data["final_domain"].split(".")[1:]) - self.link = data["final_link"] + self.sub = data["sub"] + self.domain = data["domain"] + self.link = data["link"] self.target = target self.user = None self.disabled = None