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

Db: Fix current week timeframe end #246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Aug 28, 2024

The end value for the preconfigured time frame Current week is set to the upcoming Sunday, which leads that the reports contain false positive (future) data. The end must be set to now.

@sukhwinder33445 sukhwinder33445 added the bug Something isn't working label Aug 28, 2024
@sukhwinder33445 sukhwinder33445 self-assigned this Aug 28, 2024
@cla-bot cla-bot bot added the cla/signed label Aug 28, 2024
@@ -0,0 +1 @@
UPDATE timeframe SET end = 'now' WHERE name = 'Current Week';
Copy link
Contributor

@raviks789 raviks789 Sep 24, 2024

Choose a reason for hiding this comment

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

Insert the upgrade version number of the script into reporting_schema table.

INSERT INTO reporting_schema (version, timestamp, success, reason)
  VALUES ('1.1.0', unix_timestamp() * 1000, 'y', NULL);

@@ -0,0 +1 @@
UPDATE timeframe SET end = 'now' WHERE name = 'Current Week';
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants