View Single Post
Old 03-30-2023, 01:15 PM   #539
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I can't figure out what's going on -- it's failing on this one specific book. It has no #purchasesource but adding one doesn't seem to work.
The function in the template I suggested is wrong (I think). It doesn't correctly construct the identifier for the list_difference().

Try this:
Code:
			return list_difference (ids, strcat(select_identifier, ':', si), ',')
The change is to put a colon between the identifier name and identifier value.

An alternate change that is a bit slower is
Code:
			return list_difference (ids, select(ids, select_identifier), ',')
It is slower because it repeats the select().
chaley is offline   Reply With Quote