Skip to content
Snippets Groups Projects
Verified Commit e1fb83fb authored by Nicolas Lenz's avatar Nicolas Lenz :snowflake:
Browse files

fix(scripts): fix notifications

parent cde85e7b
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,10 @@ import os ...@@ -2,10 +2,10 @@ import os
import subprocess import subprocess
import re import re
import click import click
import desktop_notifier # type: ignore from desktop_notifier.sync import DesktopNotifierSync
from typing import Iterator from typing import Iterator
notifier = desktop_notifier.DesktopNotifier(app_name="Project Opener", app_icon=None) notifier = DesktopNotifierSync(app_name="Project Opener", app_icon=None)
def get_eisfunkegit_url(project: str) -> str: def get_eisfunkegit_url(project: str) -> str:
...@@ -34,7 +34,7 @@ def git_has_unpushed(repo: str): ...@@ -34,7 +34,7 @@ def git_has_unpushed(repo: str):
def notify(title: str, message: str) -> None: def notify(title: str, message: str) -> None:
click.echo(message) click.echo(message)
notifier.send_sync(title=title, message=message) notifier.send(title=title, message=message)
def open_path(path: str) -> None: def open_path(path: str) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment