Skip to content

Commit

Permalink
Fix 'on_pi' property (#95)
Browse files Browse the repository at this point in the history
* Speed up corvee

* Fuck Pylint

* Fuck Pylint again

* Fix 'on_pi' property
  • Loading branch information
ILoveAndLikePizza authored Feb 3, 2024
1 parent 9b2ab39 commit 98b339e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions states/base.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 98b339e

Please sign in to comment.