Compare commits

...

2 Commits

Author SHA1 Message Date
d5dccdb533 update changelog
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
2024-12-13 23:50:37 +00:00
f131260bbc Update CHANGELOG.md 2024-12-13 12:22:37 +00:00
2 changed files with 10 additions and 3 deletions

View File

@ -10,12 +10,19 @@ 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
- Unhandled situation where zomboid rotates the log files, causing FileNotFoundError to be raised.
### Changed
- 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
@ -27,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- "User has connected/disconnected" alert on player death.
- "User has connected/disconnected" alert incorrectly firing on player death.
### Changed

View File

@ -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,