Skip to content

Commit

Permalink
Merge pull request #21 from adinhodovic/fix-nit
Browse files Browse the repository at this point in the history
fix: Excess spacing for terminal prompts
  • Loading branch information
adinhodovic committed Feb 27, 2024
2 parents 02ac5b1 + 8be53e8 commit c60c7d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_admin_shellx/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def map_terminal_prompt(self, terminal_prompt):
prompt = None

# pattern >>> TerminalCommand.objects.all()
match_1 = re.match(r">>>(.*)", terminal_prompt)
match_1 = re.match(r">>> (.*)", terminal_prompt)
# pattern In [2]: TerminalCommand.objects.all()'
match_2 = re.match(r"In \[\w\]: (.*)", terminal_prompt)
# pattern root@test-app-bf4fdfb6-726qh:/app# echo 'hello world'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "django-admin-shellx"
version = "0.2.0"
version = "0.2.1"
description = "A Django Admin Shell"
authors = ["Adin Hodovic <hodovicadin@gmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def test_command_creates_objects(superuser_logged_in):

# Test sending text
await communicator.send_to(
text_data=json.dumps({"action": "save_history", "data": {"command": ">>>ls"}})
text_data=json.dumps({"action": "save_history", "data": {"command": ">>> ls"}})
)
await communicator.receive_from()

Expand Down

0 comments on commit c60c7d1

Please sign in to comment.