Skip to content

统计紫皮书魔搭账号登录用户并支持账号名单导出 - #26

Closed
NovaWang97 wants to merge 1 commit into
mainfrom
codex/login-account-tracking
Closed

NovaWang97 wants to merge 1 commit into
mainfrom
codex/login-account-tracking

Conversation

@NovaWang97

Copy link
Copy Markdown
Collaborator

Summary

Record successful ModelScope logins from the Purplebook page independently of comments or other reader actions. /analytics now shows cumulative, today, and selected-period account counts, deduplicated by the verified identity already used by OAuth.

Persist daily first/last login times and login counts in the reading database. Preserve existing accounts in the cumulative total without inventing historical timestamps. Provide an administrator-only local CSV export containing OIDC subject, username, and recorded login times for matching against ModelScope registration records; no account list is exposed through public APIs. Include the export utility in the Studio deployment package.

ModelScope registration timestamps are not available in the current login integration. These metrics therefore remain labelled as login accounts, not new registrations. The documentation explains how to use the exported identities for registration matching.

Validation

  • Python API suite: 50 passed, including login without comments, repeated login deduplication, failed OAuth, database upgrades, date ranges, persistence, and CSV export.
  • Chapter Markdown suite: 10 passed; site resources and JavaScript syntax checked.
  • Browser verification: desktop/mobile account metrics and date controls; no JavaScript errors or mobile page overflow.

@NovaWang97 NovaWang97 closed this Oct 30, 2026
@NovaWang97
NovaWang97 deleted the codex/login-account-tracking branch October 30, 2026 08:57
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.

1 participant