You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue: Prevent Duplicate or Misaligned Entries in User Profile History Arrays #399
In updateUserDataAsync, the history update checks for existing entries using dateStr (YYYY-MM-DD). However, if the sync script runs multiple times across different time zones or if historical file indexing shifts due to timing discrepancies, multiple entries for the same date can occasionally be created or overwrite issues occur without robust deduplication.
Proposed Solution
Strengthen the history entry check by ensuring strict uniqueness based on date and adding a validation filter before sorting to eliminate duplicate entries for the same calendar date.
Implementation Details
Deduplication Logic: Before writing the updated history array back to disk, filter out or consolidate duplicate entries matching the same date string:
Please review our CONTRIBUTING.md guidelines before getting started.
A maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.
Issue Assignment Policy
The issue creator is given the first priority to work on their issue.
If the creator declines or does not request assignment, the issue will be assigned to others in the order of requests received.
Please do not submit PRs or begin work until you are officially assigned.
Note: This project is currently maintained by a solo maintainer, so reviews, assignments, and responses may sometimes take a little time. Thanks for your patience.
Activity
github-actions commentedon Aug 3, 2026
Thank you for opening an issue.
Please review our
CONTRIBUTING.mdguidelines before getting started.A maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.
Issue Assignment Policy
aaniya22 commentedon Aug 6, 2026
pls assign this to me under gssoc
github-actions commentedon Aug 23, 2026
This issue has been inactive for 14 days and has been marked as stale. To keep this issue open, please leave a comment.
Yashaswini-K-P commentedon Aug 29, 2026
working