From 98b339ef6f0d646a8f0624dd44a10e4325cd3d28 Mon Sep 17 00:00:00 2001 From: ILoveAndLikePizza <53319481+ILoveAndLikePizza@users.noreply.github.com> Date: Sat, 3 Feb 2024 12:28:32 +0100 Subject: [PATCH] Fix 'on_pi' property (#95) * Speed up corvee * Fuck Pylint * Fuck Pylint again * Fix 'on_pi' property --- states/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/states/base.py b/states/base.py index d49bf1a..0ee7dea 100644 --- a/states/base.py +++ b/states/base.py @@ -1,6 +1,6 @@ from abc import abstractmethod from os import environ -from shutil import which +from socket import gethostname from typing import List import httpx @@ -19,7 +19,7 @@ class BaseState: def __init__(self, stdout): super().__init__() self.killed = False - self.on_pi = which("rpi-update") + self.on_pi = gethostname() == "lichtkrant" self.player_class = None self.game_meta = None self.font_path = "./static/fonts/NotoMono-Regular.ttf"