View Single Post
Old 08-05-2023, 03:46 PM   #72
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by ownedbycats View Post
Set to 365 days:

Code:
program:
now = format_date(today(),'iso');
updated = $$#fanficupdated;
status = $#fanficstatus;

	if
		status=='In-Progress'
		&& days_between(now, updated) ># 365
	then 
		'Abandoned'

	else 
		status
	fi
My personal version marks dormant fics as such after approximately 4 months and changes to 'abandoned' if there's a logged error. (Transient errors like 'site down for maintenance' or cache errors will also toggle it, so resolve those before running the chain.)

Code:
program:
now = format_date(today(),'iso');
updated = $$#fanficupdated;
status = $#fanficstatus;

	if 
		status=='In-Progress'
		&& $#fanficerror
	then 
		'Abandoned'

	elif
		status=='In-Progress'
		&& days_between(now, updated) ># 120
	then 
		'Dormant'

	else 
		status
	fi
I found the area where you can select actions from a drop down menu, but I'm not sure where to enter program code? Would you be willing to share a screenshot?

Thanks,
Amalthia
Amalthia is offline   Reply With Quote