We found that the reporting task failed twice because of integrity constraints.

This was because the rate_multiplier was being added as 1 and 1.0 which was not resolving to the same.
This updates the table to use Integrer.
Also changed the logging for the task.
This commit is contained in:
Rebecca Law
2018-05-10 15:35:58 +01:00
parent d52e65d89a
commit 8028f6cc28
4 changed files with 7 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ from freezegun import freeze_time
from app import db
from app.dao.fact_billing_dao import (
fetch_monthly_billing_for_year, fetch_billing_data_for_day, get_rates_for_billing,
get_rate
get_rate,
)
from app.models import FactBilling
from app.utils import convert_utc_to_bst