initial setting at 20-Aug-2025

This commit is contained in:
2025-08-20 19:15:19 +09:00
parent eab529bd3b
commit 1ba305641e
149 changed files with 170449 additions and 1802 deletions

View File

@ -690,7 +690,7 @@ def removeQueueMemory
rescue => e
p e
@pgconn.disconnect
return "delete error"
return "200 OK"
end
end
@ -862,7 +862,15 @@ Thread.new do
begin
item = JSON.parse($queue.pop)
p "queue pop : #{item}"
makeScoreboard(item["zekken_number"],item["event_code"],to_boolean(item["reprintF"]),false)
pdf_path = makeScoreboard(item["zekken_number"],item["event_code"],to_boolean(item["reprintF"]),false)
# 印刷確認処理
if pdf_path && File.exist?(pdf_path)
print_command = "lpr -P scoreboard_printer #{pdf_path}"
result = system(print_command)
puts "印刷結果: #{result ? '成功' : '失敗'}"
end
result = removeQueueMemory()
if result == "delete error" then
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")