mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 11:48:22 +02:00
contracted 2 line into 1
This commit is contained in:
parent
16e0cad559
commit
f581e728f8
1 changed files with 1 additions and 2 deletions
|
@ -8,8 +8,7 @@ import os
|
||||||
|
|
||||||
def count_track(self):
|
def count_track(self):
|
||||||
tracks = []
|
tracks = []
|
||||||
with open("./ct_config.json", encoding="utf-8") as f:
|
with open("./ct_config.json", encoding="utf-8") as f: ctconfig = json.load(f)
|
||||||
ctconfig = json.load(f)
|
|
||||||
self.VERSION = ctconfig["version"]
|
self.VERSION = ctconfig["version"]
|
||||||
for cup in ctconfig["cup"].values():
|
for cup in ctconfig["cup"].values():
|
||||||
if not (cup["locked"]): tracks.extend(cup["courses"].values())
|
if not (cup["locked"]): tracks.extend(cup["courses"].values())
|
||||||
|
|
Loading…
Reference in a new issue