Skip to content

Commit

Permalink
refactor: tidy up workspace.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eri24816 committed Mar 23, 2024
1 parent d92a73b commit a3840cc
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 221 deletions.
3 changes: 3 additions & 0 deletions backend/src/grapycal/core/slash_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def __repr__(self):
return f"<SlashCommand {self.name}>"

def to_dict(self):
'''
Use to send the command's information to the client
'''
return {
"name": self.name,
"source": self.source,
Expand Down
Loading

0 comments on commit a3840cc

Please sign in to comment.