This commit is contained in:
Luciano Laratelli 2025-04-11 15:19:17 -04:00
parent 19596734b0
commit 7589b3d493

View file

@ -1,6 +1,7 @@
(ns com.score-the-pigs.app (ns com.score-the-pigs.app
(:require (:require
[clojure.pprint :as pp] [clojure.pprint :as pp]
[clojure.tools.logging :as log]
[clojure.string :as str] [clojure.string :as str]
[com.biffweb :as biff] [com.biffweb :as biff]
[com.score-the-pigs.middleware :refer [wrap-clean-up-param-vals]] [com.score-the-pigs.middleware :refer [wrap-clean-up-param-vals]]
@ -385,9 +386,10 @@ end"}
[:= :game_code game-code] [:= :game_code game-code]
[:= :play_order current-player]]})))) [:= :play_order current-player]]}))))
update-display-table (delay (jetty/send! (get @chat-clients game-code) update-display-table (delay (log/info "sent webhook to" (get @chat-clients game-code) ", a webhook client for game" game-code ", with result"
(rum/render-static-markup (jetty/send! (get @chat-clients game-code)
(player-summary game-code ds))))] (rum/render-static-markup
(player-summary game-code ds)))))]
(cond (cond
(= score ::pig-out) (= score ::pig-out)