Cleanup report code

parent 5bd1f8b0
......@@ -49,11 +49,7 @@ combined-worklogs.sqlite: repository-worklog.sqlite $(foreach SUBMODULE,$(SUBMOD
sqlite3 $@
combined-daylog.csv: force
if -z $(TIMESHEETDOC); then
touch $@
else
curl -s -L "https://docs.google.com/spreadsheets/d/$(TIMESHEETDOC)/export?format=csv" -o $@
fi
$(or $(and $(TIMESHEETDOC),curl -s -L "https://docs.google.com/spreadsheets/d/$(TIMESHEETDOC)/export?format=csv" -o),touch) $@
combined-daylog.sqlite: combined-daylog.csv
sqlite3 $@ "DROP TABLE IF EXISTS days; CREATE TABLE days (author TEXT, date DATE, start DATE, end DATE, breaks INT, sig TEXT, apr TEXT, hours INT)"
......@@ -78,9 +74,9 @@ reports/translations-worklog.md: combined-worklogs.sqlite combined-daylog.sqlite
echo
echo "Report Generated on $${now} from repository $${ver}."
echo
echo "### File edits"
echo "### File Edits"
echo
echo "Net Characters Added: $${netadded}"
echo "Net characters added: $${netadded}"
echo
echo '``` table'
echo '---\nheader: True\n---'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment