Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Missing summary causes page load errors #37

Description

@instanttim

When the summary for today doesn't exist in the database, but the server thinks it's today, then you get a page load error, it fails to finish rendering the charts and won't allow the display of summary data.

This is because the clock mis-synchronization code is suppressing the creation of new records in the summary table because, for instance, the values are larger than the EOD values from the previous day. That's of course because the MATE hasn't reset it's values to 0 yet because of the clock mismatch.

We could, of course, write in zero/null values into a record for today as soon as possible. It would still cause this to happen if you loaded the page after midnight but before the first regstatus.php call happens. Hmm... because it uses the current date/time for the query. Perhaps it should use the date/time of the most recent status update? so it'll just show yesterday until it has new stuff to show for today?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions