Thor77
5ea2f6ab3d
Remove extra lines after encoding header
2018-02-01 20:49:23 +01:00
Thor77
edff1e956d
Optionally Pendulum.diff_for_humans instead of frmttime
...
for relative last seen time (default)
* introduce --lastseenabsolute
* introduce tsstats.template.render_servers(lastseen_relative=True)
2017-07-07 14:23:10 +02:00
Thor77
8f49c3e95d
Add debugstdout flag/config-directive
...
to enable debug logging to stdout
Fix #15
2017-02-27 13:37:04 +01:00
Thor77
5915664605
Set index.jinja2 as default for General.template
2016-11-22 23:03:51 +01:00
Thor77
273a01bec6
Rename default template to stats.jinja2
...
from template.html
2016-11-18 21:52:30 +01:00
Thor77
5637a11b2b
Add onlinetimethreshold config and cli-option
...
to set render_template.onlinetime_threshold.
Default value is -1 => no filtering to not cause confusion
2016-11-11 18:40:52 +01:00
Thor77
f7669792c1
Set default for General.output to tsstats.html
2016-09-22 15:35:39 +02:00
Thor77
799f622201
Use RawConfigParser instead of ConfigParser in tsstats.config
...
because General.datetimeformat creates problems with string-interpolation.
These are solved by swichting to RawConfigParser, which doesn't support this feature.
2016-09-17 22:42:32 +02:00
Thor77
4078e4b06b
Add config-option datetimeformat
...
for tsstats.template.render_template(datetime_fmt)
2016-09-17 22:41:03 +02:00
Thor77
604fefe286
Add 'template' config-option
2016-08-10 22:45:14 +02:00
Thor77
cfb593ba9c
use py2-compatible way to check for section-existance in tsstats.config.load
...
* bump version to 0.10.2
2016-08-06 21:42:54 +02:00
Thor77
708f071033
replace tsstats.config.parse_config with tsstats.config.load, which just returns a configparser.ConfigParser-instance for easier extension
...
tsstats.__main__.main: now accepts only a configparser.ConfigParser-instance and extracts values from it
tsstats.__main__.cli: defaults from argparser are now suppressed and given cli-args override values from config
* bump version to 0.10.0
2016-08-06 21:36:17 +02:00
Thor77
892680fe4d
add onlinedc config-option
...
* inverse of --noonlinedc
2016-06-25 20:42:46 +02:00
Thor77
52a05acdab
add source-encoding (utf-8) to all files
2016-06-07 17:42:53 +02:00
Thor77
8ca23e0115
add documentation to tsstats.{config,log,template,utils}.*
2016-05-30 20:23:03 +02:00
Thor77
c094edb6e9
refactor config.parse_config
...
* add debug-output
* return config-values as expected by __main__.main
* remove test_config_invalid
* fix tests
2016-05-21 23:14:52 +02:00
Thor77
cbb44fcb85
[config] rename logfile to log and outputpath to output
2016-05-10 22:56:48 +02:00
Thor77
6e7922492a
use py2-style ConfigParser-get-methods
2016-05-09 19:29:24 +02:00
Thor77
4329ad2e11
use py2-style ConfigParser-methods
2016-05-09 19:25:48 +02:00
Thor77
a25a596d02
split tsstats.py into package with multiple files
2016-05-08 21:32:37 +02:00