Lichess4545/heltour

interpret lichess reply to sending dms correctly

開放

#698 建立於 2025年7月2日

 (0 則留言) (0 個反應) (1 位負責人)Python (12 個分叉)auto 404
P3 - lowbuggood first issue

倉庫指標

星標
 (5 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

in this line: https://github.com/Lichess4545/heltour/blob/91ce688af08eb5f0d1cb9f2ad92bb0e19e0f2795/heltour/tournament/lichessapi.py#L127-L128 we check whether the lichess reply is "ok". however, the actual lichess reply for a successful message is not simply "ok", but the json '{"ok": true}'. this leads to a lot of error messages Error sending mail: {"ok":true} in our log.

貢獻者指南