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

Allow download tracking for anonymous users #3244

Open
Archinowsk opened this issue Nov 25, 2024 · 0 comments
Open

Allow download tracking for anonymous users #3244

Archinowsk opened this issue Nov 25, 2024 · 0 comments

Comments

@Archinowsk
Copy link

Archinowsk commented Nov 25, 2024

Could it be possible to add a setting to enable download tracking for anonymous users?

Currently download tracking is only enabled for registered users:

calibre-web/cps/helper.py

Lines 1101 to 1103 in e603184

# collect downloaded books only for registered user and not for anonymous user
if current_user.is_authenticated:
ub.update_download(book_id, int(current_user.id))

My use case is running a public library-kind page (https://roolipelikirjasto.fi) with only anonymous users and I would like to use the Hot Books (Most Downloaded) category and overall see download statistics.

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

No branches or pull requests

1 participant