View Single Post
Old 07-08-2024, 12:15 PM   #688
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,653
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
program: 

	if 
		'(In-Progress|Dormant|Abandoned)' in $#fanficstatus
		|| $#fanficstatus=='Oneshot' && $$#pagecount<30)
		|| readstatus()=='read'
	then
		$#admintags

	else
		columnupdate_admintags_readinggoal()
	fi
How does $$#pagecount<30 work with undefined columns?

Issue: columnupdate_admintags_readinggoal() adds "readinggoal:{currentyear}" to admintags.

I noticed the tag (which auto-adds books to Reading Goal addon) was showing up on certain fics where it shouldn't, specifically oneshots of less than 30 pages. I think I know why - FanFicFare calls both Action Chains and Count Pages simultaneously upon fic download, so the chain with this template runs before Count Pages has a chance to populate the column.

If I'm right and <30 doesn't include the nulls, then I'll just update the template to exclude oneshots entirely and add the tag manually.

Last edited by ownedbycats; 07-08-2024 at 12:32 PM.
ownedbycats is offline   Reply With Quote