View Single Post
Old 04-13-2019, 09:55 AM   #3332
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2018-04-13
- Fix for saved custom column metadata and boolean values.

Quote:
Originally Posted by jesscat View Post
I have been using the Saved Metadata column for my experimenting, but couldn't figure out where bookmarkprivate (or bookmarkrecs for that matter) are. I don't see either of them, even though I have always_login set to true.
They only appear in saved metadata if true for a story, so technically they never have a false value.

Quote:
Originally Posted by jesscat View Post
Assuming that part gets worked out, I think I need a little more help in figuring out how to use custom_column_settings to achieve what I want to do with a boolean field, because I think I'm missing something from your explanation. Where do the yes/1/true values fit in to custom_column_settings? Would I just do something like this [assuming #my_bookmarks is my yes/no column for whether a story is bookmarked]:

Code:
custom_columns_settings:
 bookmarkprivate=>#my_bookmarks
That should work, unless you have tri-state booleans on.

Quote:
Originally Posted by jesscat View Post
...though actually what I really want is for the #my_bookmarks custom column to be set to true if bookmarkprivate is true *or* false, and to be set to false if bookmarkprivate is undefined.
All you really get from bookmarkprivate is True or undefined. I'll consider if it could be changed to be true/false/undefined(no bookmark).
JimmXinu is offline   Reply With Quote