From d5dccdb5333b4ea792bf2ddc66e864b5615e9135 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Fri, 13 Dec 2024 23:50:37 +0000 Subject: [PATCH] update changelog --- CHANGELOG.md | 5 ++++- utils/models.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d0c481..b6e7ae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Debug environment variable flag. -- Command to build player data from existing log files. +- Store player deaths and sessions in the db. +- Calculate player's playtime via the sum of their stored session lengths. +- Admin-only "build" command for player data - causes the bot to read through all older log files for data. ### Fixed @@ -20,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Log level dependent on the debug flag. - Connect to and build the database earlier into start-up. +- Many smaller changes and improvements to the database tables for player data. ## [0.0.3] - 2024-12-09 diff --git a/utils/models.py b/utils/models.py index 9c1b691..ab81e3d 100644 --- a/utils/models.py +++ b/utils/models.py @@ -102,7 +102,7 @@ class Player(Model): # I know this is terrible efficiency-wise, but the tortoise docs # are so bad and the annotations don't work like Django's models. Deal with it! for session in sessions: - log.info( + log.debug( "playtime info:\nsession start: %s\nsession end: %s\nsession playtime: %s", session.connected_at, session.disconnected_at,