[%# ========================================================================== This is the TT2 file for making a list of hosts contributing to HPR in the current year which is run in conjunction with 'query2tt2'. It's invoked thus: year="2022" # or whatever ./query2tt2 -query=$HOME/HPR/Community_News/hosts_showcount.sql \ -conf=$HOME/HPR/.hpr_livedb.cfg \ -dbargs "${year}-01-01" -dbargs "${year}-12-31" -def year=${year} \ -template=$HOME/HPR/Community_News/hosts_list.tpl \ > $HOME/HPR/Community_News/hosts_showcount_${year}.html [We can't use the planned pure TT2 version since Template::Plugin::DBI can't run over the SSH tunnel.] 2023-10-30 The correspondent URL has changed with the static site, and needs the hostid to be zero-padded. ========================================================================== -%] [%- USE date -%] [%- DEFAULT year = date.format(date.now,'%Y','UTC') -%]