Skip to content

Commit

Permalink
Fix formatting with black and isort
Browse files Browse the repository at this point in the history
Signed-off-by: miigotu <miigotu@gmail.com>
  • Loading branch information
miigotu committed Sep 3, 2022
1 parent 34428d7 commit c5f2d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sickchill/init_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def remove_pid_file():
_distribution = None
_version = None


def get_distribution() -> Union[Distribution, None]:
global _distribution
if _distribution is None:
Expand All @@ -139,9 +140,11 @@ def get_distribution() -> Union[Distribution, None]:
return None
return _distribution


def check_installed() -> bool:
return get_distribution() is not None


def get_current_version():
global _version
if _version is None:
Expand All @@ -150,11 +153,8 @@ def get_current_version():
if distribution:
return distribution.version

result = subprocess.run(['poetry', 'version', '-s'])
result = subprocess.run(["poetry", "version", "-s"])
if result.returncode == 0:
_version = result.stdout

return _version



2 changes: 1 addition & 1 deletion sickchill/oldbeard/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from sickchill import settings
from sickchill.helper import video_screen_size
from sickchill.init_helpers import setup_gettext, get_current_version
from sickchill.init_helpers import get_current_version, setup_gettext
from sickchill.recompiled import tags
from sickchill.tagger.episode import EpisodeTags

Expand Down

0 comments on commit c5f2d52

Please sign in to comment.