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
I'm using calibre-web to host a public roleplaying library page (roolipelikirjasto.fi). I would like to edit Guest user default view settings. Specifically, I would like the Series page to default into using List instead of Grid.
Seems the Guest user view_settings are only loaded from flask_session (ie cookie):
For Guest user, would it be possible to get view_settings using DB user.view_settings if flask_session is missing?
def get_view_property(self, page, prop):
if 'view' in flask_session:
if not flask_session['view'].get(page):
return None
return flask_session['view'][page].get(prop)
+ if self.view_settings.get(page):+ return self.view_settings[page].get(prop)
return None
In this case, I would be editing user.view_settings directly to DB. I understand this is somewhat niche feature request 😅.
The text was updated successfully, but these errors were encountered:
I'm using
calibre-web
to host a public roleplaying library page (roolipelikirjasto.fi). I would like to edit Guest user default view settings. Specifically, I would like the Series page to default into using List instead of Grid.Seems the Guest user
view_settings
are only loaded fromflask_session
(ie cookie):calibre-web/cps/ub.py
Lines 329 to 330 in efc7ce3
view_settings
from DB seem to also be available:calibre-web/cps/ub.py
Line 311 in efc7ce3
For Guest user, would it be possible to get
view_settings
using DBuser.view_settings
ifflask_session
is missing?In this case, I would be editing
user.view_settings
directly to DB. I understand this is somewhat niche feature request 😅.The text was updated successfully, but these errors were encountered: