Skip to content

Commit

Permalink
🎨 Format api_ran_time.py (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreomeow committed Oct 30, 2022
1 parent 68b3ae1 commit df79709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api_ran_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ class QLClient(ClientApi):
def __init__(self, client_info: Dict):
super().__init__()
if (
not client_info
or not (cid := client_info.get("client_id"))
or not (sct := client_info.get("client_secret"))
not client_info
or not (cid := client_info.get("client_id"))
or not (sct := client_info.get("client_secret"))
):
raise ValueError("无法获取 client 相关参数!")
self.cid = cid
Expand All @@ -89,7 +89,7 @@ def init_cron(self):
self.cron = list(
filter(
lambda x: not x.get("isDisabled", 1)
and x.get("command", "").find("OreosLab_checkinpanel_master") != -1,
and x.get("command", "").find("OreosLab_checkinpanel_master") != -1,
cron_data,
)
)
Expand Down

0 comments on commit df79709

Please sign in to comment.