Compare commits
2 Commits
1be47acdd8
...
d5dccdb533
Author | SHA1 | Date | |
---|---|---|---|
d5dccdb533 | |||
f131260bbc |
11
CHANGELOG.md
11
CHANGELOG.md
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user