mirror of
https://github.com/indig0fox/Arma3-AttendanceTracker.git/
synced 2025-12-08 09:51:47 -06:00
use player_id for session instead of UID. add build dockerfile
This commit is contained in:
11
extension/AttendanceTracker/build/Dockerfile.build
Normal file
11
extension/AttendanceTracker/build/Dockerfile.build
Normal file
@@ -0,0 +1,11 @@
|
||||
# build Golang app for Linux
|
||||
FROM golang:1.20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# get gcc-multilib and gcc-mingw-w64
|
||||
RUN apt update
|
||||
RUN apt install -y gcc-multilib gcc-mingw-w64
|
||||
|
||||
CMD ["/bin/sh"]
|
||||
|
||||
@@ -313,8 +313,8 @@ func writeAttendance(data string) {
|
||||
var dbEvent Session
|
||||
db.Client().
|
||||
Where(
|
||||
"player_uid = ? AND mission_hash = ?",
|
||||
event.PlayerUID,
|
||||
"player_id = ? AND mission_hash = ?",
|
||||
event.PlayerId,
|
||||
event.MissionHash,
|
||||
).
|
||||
Order("join_time_utc desc").
|
||||
|
||||
Reference in New Issue
Block a user