diff --git a/OddsjamBetTracker.py b/OddsjamBetTracker.py index 2fb88cb..c95784e 100644 --- a/OddsjamBetTracker.py +++ b/OddsjamBetTracker.py @@ -190,7 +190,7 @@ class SyncOddsjamBetTracker: try: # 确保响应已完成 if response.request.failure is None and response.status == 200: - data = response.json() # 注意:sync_api 中 .json() 是同步的 + data = response.json() # 注意: sync_api 中 .json() 是同步的 self.total_bet_cnt = data["totalCount"] logger.info(f"total bet count: {self.total_bet_cnt}") diff --git a/common/dingtalk.py b/common/dingtalk.py index 06521d1..8d3ffa3 100644 --- a/common/dingtalk.py +++ b/common/dingtalk.py @@ -97,8 +97,8 @@ class DingTalkBot: if __name__ == "__main__": - webhook = "https://oapi.dingtalk.com/robot/send?access_token=fb70c1561d8beba94b4f11568f4bb15e3ae07ccbdc8ac19676434a9d1cd17546" # 填写你的webhook - secret = "SEC1ae7cd2f1a6f9da3611af37da3e7d954c1e8533fc073c6c8cc5e5af3b6e5926b" # 填写你的加签token(如果有),否则留空 + webhook = "https://oapi.dingtalk.com/robot/send?access_token=fb70c1561d8beba94b4f11568f4bb15e3ae07ccbdc8ac19676434a9d1cd17546" + secret = "SEC1ae7cd2f1a6f9da3611af37da3e7d954c1e8533fc073c6c8cc5e5af3b6e5926b" # CTA 群机器人 # webhook = "https://oapi.dingtalk.com/robot/send?access_token=87c7abfcdd69b699c32da4e4f5981cd2ca6b0445474fc6ffb36f2ed0f6262fbb" diff --git a/pinnacle_experiments.py b/pinnacle_experiments.py index f497683..4c65093 100644 --- a/pinnacle_experiments.py +++ b/pinnacle_experiments.py @@ -49,7 +49,7 @@ def compute_metrics( # brier score brier = float(np.mean((p_clip - y) ** 2)) - # ECE 计算(支持 uniform 或 quantile) + # ECE 计算 (支持 uniform 或 quantile) if bin_strategy == "quantile": # quantile bin edges try: