Skip to content

Commit

Permalink
Merge pull request #155 from P-nutsK/main
Browse files Browse the repository at this point in the history
Fix Logical Error
  • Loading branch information
TimMcCool authored Nov 15, 2023
2 parents f37bc0f + 22cb0a2 commit 26edb18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scratchattach/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def unlove(self):
cookies = self._cookies,
).json()
if r['userLove'] is True:
self.love()
self.unlove()

def favorite(self):
"""
Expand All @@ -347,7 +347,7 @@ def favorite(self):
cookies = self._cookies,
).json()
if r['userFavorite'] is False:
self.love()
self.favorite()

def unfavorite(self):
"""
Expand All @@ -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):
Expand Down

0 comments on commit 26edb18

Please sign in to comment.