Skip to content

Conversation

@zoidy
Copy link
Collaborator

@zoidy zoidy commented Jul 17, 2025

Description
The issue stemmed from data not being cleared in the Google Sheet prior to adding new data. This was intentional in order to capture the date a record was last updated/added to the sheet. This necessitated deduping the added records to filter out ones that hadn't changed. However, the deduping method did not account for when an item goes from unpublished to published. The historical record of update dates is not being used so to simplify the code and fix the bug, the sheet is now cleared before adding any new data. The deduping code has been removed as it is no longer needed.

Fixes #15

Screenshots or additional context

Testing (if applicable)
Ran the function manually on DO and the report generates the correct data.

@zoidy zoidy linked an issue Jul 17, 2025 that may be closed by this pull request
1 task
@zoidy zoidy merged commit d1229ed into main Jul 17, 2025
1 check passed
@zoidy zoidy deleted the 15-bug-double-counting-of-certain-items-in-items-dashboard branch July 17, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Double counting of certain items in Items dashboard

2 participants