diff --git a/python/report.py b/python/report.py index 87c13cd..a4597f3 100644 --- a/python/report.py +++ b/python/report.py @@ -45,7 +45,7 @@ startdate = recent.dt.iloc[-1].date() ntot = recent.FloatValue.sum() -print('\n{0} {1}: {2:.2f} euro'.format( +print('\n{0} {1}:\n{2:.2f} euro'.format( sentences[args.lang][1], startdate, abs(ntot))) diff --git a/python/report.sh b/python/report.sh new file mode 100755 index 0000000..21103ef --- /dev/null +++ b/python/report.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ "$#" -ne 3 ]]; then + echo "Usage: ./report.sh " + exit 1 +fi + +DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +source ${DIR}/bin/activate +python3 ${DIR}/report.py -f $1 -n $2 -l $3