Skip to content

Commit

Permalink
Fixed more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shouhanzen committed Feb 29, 2024
1 parent 5b63400 commit af44687
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/src/contributors/cmd_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self) -> None:

self.shells = {"powershell": self.run_powershell_command, "bash": self.run_bash_command}
super().__init__()
def run_powershell_command(command: str, sudo: bool = False):
def run_powershell_command(self, command: str, sudo: bool = False):
if platform.system() != "Windows":
print("This function can only be run on Windows.")
return
Expand All @@ -30,7 +30,7 @@ def run_powershell_command(command: str, sudo: bool = False):
print(f"Output: {output.decode().strip()}")


def run_bash_command(command: str, sudo: bool = False):
def run_bash_command(self, command: str, sudo: bool = False):
if platform.system() != "Windows":
print("This function is intended for use on Windows with Git Bash.")
return
Expand Down
2 changes: 1 addition & 1 deletion backend/src/contributors/web_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from src.contributors.contributor import CommandContributor

class WebInterface(CommandContributor):
def open_url(url: str):
def open_url(self, url: str):
print(f"Opening {url}")

webbrowser.open(url)
Expand Down
4 changes: 3 additions & 1 deletion changelong.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ v0.3.1

- Pinned /backend/public/icons/windows dir with gitignore
- Fixed run command crash
- Fixed Spotify command crash
- Fixed Spotify command crash
- Fixed script command crash
- Fixed website command crash

0 comments on commit af44687

Please sign in to comment.