View Single Post
Old 05-14-2015, 08:33 PM   #452
sweth
Connoisseur
sweth began at the beginning.
 
Posts: 68
Karma: 10
Join Date: May 2015
Device: Kindle Fire 7 (7G), Kindle PW (2G), Kindle Scribe
Playing around with the #ol_wait_weeks column and the new functionality looks great. Any suggestions for a template that could be used for a separate column built from that column that just contains the lowest wait time among all of the entries in #ol_wait_weeks? In perl I would do something like

Quote:
List::Util::min( map {/(\d+)/ && $1} split ("," => $ol_wait_weeks) )
but I am just learning python and calibre's template lang so I'm not sure what the equivalent would be.
sweth is offline   Reply With Quote