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.