Quote:
Originally Posted by ownedbycats
1. Line 27's list_union isn't working as long as I have 'manual' in there, which I'm guessing is due to it being an enumerated column instead of taglike. How do I use it in the list_union?
|
The error message I get is
Code:
EXCEPTION: Formatter: Incorrect number of arguments for function list_union near ')' on line 27
This error message is correct. The list_union() function takes 3 arguments: the first list, the second list, and the separator. You are passing 4 arguments, 2 of which are lists. You need something like
Code:
list_union(list_union(cleaned_tags, fanfic, ','), manual, ',')
Quote:
2. How do I add 'All Books' to the vl check? "All Books" didn't work.
Thanks
|
The 'All Books' virtual library isn't a VL, it is the null VL. Its name is the empty string: ''. You would use something like
Code:
if
vl == '' || '(Read|Unread|On Device)' in vl
then
This should work as well:
Code:
if
'^(|Read|Unread|On Device)$' in vl
then
In fact it is better because 'read' is a substring of 'unread' so without the anchors 'read' will match both 'read' and 'unread', which in some cases might not be what you want.