fix report generation

This commit is contained in:
Christian Grothoff 2019-10-29 11:32:44 +01:00
parent 5ddbdfe91b
commit 85a9ee6a1d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -218,7 +218,7 @@ and should be answered by revoking the exchange's online siging keys.
% FIXME: reference PhD thesis? % FIXME: reference PhD thesis?
The total amount the exchange currently lags behind is The total amount the exchange currently lags behind is
{\bf {{ data.missing_deposit_confirmation_total }} } or {\bf {{ data.missing_deposit_confirmation_total }} } from a total number of
{\bf {{ data.missing_deposit_confirmation_count }} } deposit confirmations. {\bf {{ data.missing_deposit_confirmation_count }} } deposit confirmations.
Note that some lag is perfectly normal. Note that some lag is perfectly normal.
@ -229,7 +229,7 @@ Below, we report {\em all} deposit confirmations that are lagging behind.
{% if data.deposit_confirmation_inconsistencies|length() == 0 %} {% if data.deposit_confirmation_inconsistencies|length() == 0 %}
{\bf No deposit confirmations that are lagging behind detected.} {\bf No deposit confirmations that are lagging behind detected.}
{% else %} {% else %}
\begin{longtable}{p{1.5cm}|r|c|r} \begin{longtable}{r|r|r}
{\bf Timestamp} & {\bf Amount} & {\bf Row} \\ {\bf Timestamp} & {\bf Amount} & {\bf Row} \\
\multicolumn{3}{l}{\bf Target account} \\ \hline \hline \multicolumn{3}{l}{\bf Target account} \\ \hline \hline
\endfirsthead \endfirsthead
@ -247,12 +247,11 @@ Below, we report {\em all} deposit confirmations that are lagging behind.
\label{table:missing_dc} \label{table:missing_dc}
\endlastfoot \endlastfoot
{% for item in data.deposit_confirmation_inconsistencies %} {% for item in data.deposit_confirmation_inconsistencies %}
&
{{ item.timestamp }} & {{ item.timestamp }} &
{{ item.amount }} & {{ item.amount }} &
{{ item.row }} \\ {{ item.rowid }} \\
\nopagebreak \nopagebreak
\multicolumn{3}{l}{ {\tt {{ item.account }} } } \\ \hline \multicolumn{3}{l}{ {\tt \truncate{0.95\textwidth}{ {{ item.account }} } } } \\ \hline
{% endfor %} {% endfor %}
\end{longtable} \end{longtable}
{% endif %} {% endif %}