mirror of
https://codeberg.org/privacy1st/rotate-screen
synced 2024-12-03 23:05:03 +01:00
minor
This commit is contained in:
parent
6f3afb6ac8
commit
e40fc1158b
@ -112,8 +112,9 @@ class Config:
|
|||||||
|
|
||||||
return matches
|
return matches
|
||||||
|
|
||||||
def load_json(self) -> tuple[list[str], list]:
|
@classmethod
|
||||||
j = json.loads(self.get_cfg_path().read_text())
|
def load_json(cls) -> tuple[list[str], list]:
|
||||||
|
j = json.loads(cls.get_cfg_path().read_text())
|
||||||
if "screens" not in j:
|
if "screens" not in j:
|
||||||
raise Exception("'screens' array missing in cfg.")
|
raise Exception("'screens' array missing in cfg.")
|
||||||
screens = j["screens"]
|
screens = j["screens"]
|
||||||
|
Loading…
Reference in New Issue
Block a user