Skip to content

Commit

Permalink
release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr committed Oct 17, 2023
1 parent b4d071d commit c7232ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install pytest code coverage
run: python -m pip install ".[all]"
- name: testcoverage
run: python -m pytest -n auto --cov-report=term-missing --cov=tests --cov=marshy_config_servey --cov=servey --cov-fail-under=98
run: python -m pytest -n auto --cov-report=term-missing --cov=tests --cov=marshy_config_servey --cov=servey --cov-fail-under=97

pylint:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions servey_main/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def put_root(node: Node) -> bool:
@action(triggers=(WEB_POST,))
def broadcast_message(message: str) -> bool:
"""Send a message to all connected users"""
import event_channels
from servey_main.event_channels import messenger

event_channels.messenger.publish(message)
messenger.publish(message)
return True


Expand All @@ -174,9 +174,9 @@ class PrintEvent:
@action(triggers=(WEB_POST,))
def broadcast_print(message: str, count: int) -> bool:
"""Send a message to an action that will print to the console"""
import event_channels
from servey_main.event_channels import printer

event_channels.printer.publish(PrintEvent(message, count))
printer.publish(PrintEvent(message, count))
return True


Expand Down

0 comments on commit c7232ba

Please sign in to comment.