Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats logger #10

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Stats logger #10

wants to merge 6 commits into from

Conversation

Ecnama
Copy link

@Ecnama Ecnama commented Jan 28, 2025

Add stats logging

@Ecnama Ecnama added the enhancement New feature or request label Jan 28, 2025
@Ecnama Ecnama requested a review from pixup1 January 28, 2025 10:59
@Ecnama Ecnama self-assigned this Jan 28, 2025
@@ -0,0 +1,282 @@
import { SqlAttribute, TableSchema } from './tableSchema';
import { createTableDB, queryDB, updateDB } from './storage';
import { update } from './match';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import

@pixup1
Copy link
Member

pixup1 commented Jan 29, 2025

I also think it would be interesting to store a timestamp for each match (maybe even two, one for the beginning and one for the end ?)

@Ecnama
Copy link
Author

Ecnama commented Jan 29, 2025

I also think it would be interesting to store a timestamp for each match (maybe even two, one for the beginning and one for the end ?)

Not really necessary, i think, but it could be a future improvement

@pixup1
Copy link
Member

pixup1 commented Jan 29, 2025

If we don't record when the matches happened, why does it even make sense to record anything about matches. The data won't make any sense if you can't sort them in the order that they happened during the lan

@pixup1 pixup1 linked an issue Jan 29, 2025 that may be closed by this pull request
@pixup1 pixup1 changed the base branch from dev to main February 3, 2025 10:49
@@ -17,34 +18,60 @@ export const setup = async () => {
{ name: 'tDiff', type: 'INTEGER' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to remove this one

if (!playerExists) {
await Storage.insertDB(
StatsLogger.PLAYERS_TABLE,
new Map<string, string | number>([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff, hspct and adr should be removed here as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse log data from CS server
2 participants