Skip to content

Commit

Permalink
🐛 Fixed isClientSide checking if serverSide is required
Browse files Browse the repository at this point in the history
This fixes issue #3
  • Loading branch information
Daniel committed Aug 27, 2022
1 parent cd30f02 commit 692b099
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions modrinth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,27 @@ def isServerSide(self) -> bool:
'''
if self.serverSide == 'optional' or self.serverSide == 'required':
return True

else:
return False

def isClientSide(self) -> bool:
'''
Check if the project is client side.
'''
if self.clientSide == 'optional' or self.serverSide == 'required':
if self.clientSide == 'optional' or self.clientSide == 'required':
return True

else:
return false

def isUniversal(self) -> bool:
'''
Check if the project is both server side or client side.
'''
if self.serverSide in ['universal', 'required'] and self.clientSide in ['universal', 'required']:
return True

else:
return False

def getDependencies(self) -> dict:
'''
Get the project dependencies.
Expand Down

0 comments on commit 692b099

Please sign in to comment.