From 22cb0a21305d98bce941dc05c692f4402bd8288b Mon Sep 17 00:00:00 2001 From: P_nutsK <107553542+P-nutsK@users.noreply.github.com> Date: Mon, 13 Nov 2023 23:22:22 +0900 Subject: [PATCH] Fix Logical Error --- scratchattach/project.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scratchattach/project.py b/scratchattach/project.py index 3c224b25..a77c3857 100644 --- a/scratchattach/project.py +++ b/scratchattach/project.py @@ -332,7 +332,7 @@ def unlove(self): cookies = self._cookies, ).json() if r['userLove'] is True: - self.love() + self.unlove() def favorite(self): """ @@ -347,7 +347,7 @@ def favorite(self): cookies = self._cookies, ).json() if r['userFavorite'] is False: - self.love() + self.favorite() def unfavorite(self): """ @@ -361,8 +361,8 @@ def unfavorite(self): headers = self._headers, cookies = self._cookies, ).json() - if r['userFavorite'] is False: - self.love() + if r['userFavorite'] is True: + self.unfavorite() def post_view(self):