View Single Post
Old 09-17-2023, 09:49 AM   #60
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: 8,832
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by ownedbycats View Post
Here. Since a lot of the options overlap, I use Chain Variations to also have it serve as a 'Mark as DNF' chain. Note the comments.

Attachment 203812
Templates used. You may need to adjust things.

Set #lastread. (If you don't use Kobo Utilities, you can just replace this with a predefined value for current datetime.)


Code:
program:
	
## Check Kobo status column. If it's empty, set to current datetime.
	if $#kobostatus=='' then format_date(today(),'iso')
## If kobostatus is populated, date imports from Kobo Utilities - don't overwrite!
	else $$#lastread
	fi

Add dnf to admintags:

Code:
program: list_union($#admintags, 'dnf', ',')
Increment #timesread:

Code:
program: $$#timesread + 1
Add dates to #readdates:

Code:
program:
	list_union(strcat(format_date($$#lastread, 'MMM d yyyy')), $#readdates, ',')
The other SFEs are either predefined or ask-on-runtime.

Last edited by ownedbycats; 09-17-2023 at 09:52 AM.
ownedbycats is offline   Reply With Quote