Skip to content

Commit

Permalink
Try to fix github action, and update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ajyoon committed Jul 18, 2023
1 parent 52ad3a1 commit eb70b4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
env:
NEOSCORE_HEADLESS: True
- name: Check formatting conforms to Black
uses: psf/black@stable
uses: psf/black@23.3.0
if: matrix.platform == 'ubuntu-latest'
- name: Check import sorting with isort
if: matrix.platform == 'ubuntu-latest'
Expand Down
4 changes: 3 additions & 1 deletion examples/inter_process_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

@app.route("/set_text/<text>")
def set_text(text: str):
# As a simple example, send the time
# Send messages between the Flask thread and the Neoscore refresh func thread
# using a simple message queue.
message_queue.put(text)
return f'text set to "{text}"'

Expand All @@ -51,6 +52,7 @@ def run_flask():


def refresh_func(time: float) -> neoscore.RefreshFuncResult:
# Process all available messages from the Flask thread
while not message_queue.empty():
msg = message_queue.get()
main_text.text = msg
Expand Down

0 comments on commit eb70b4f

Please sign in to comment.