Rebecca Law
8028f6cc28
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.
2018-05-10 15:35:58 +01:00
Rebecca Law
d00614205e
Adding test for fetch_biling_data_for_day.
2018-04-25 14:45:51 +01:00
Rebecca Law
16ef133aa5
Refactor reporting task so that methods can be used for the annual usage page.
...
Still a work in progress, tests are coming.
2018-04-25 14:45:51 +01:00
venusbb
52aeec2247
bug fix: use date only when comparing unique records rather than datetime
2018-03-29 11:42:31 +01:00
venusbb
83aa1b9fa3
use datetime.combine rather than parser.parse
2018-03-28 10:52:37 +01:00
venusbb
2262db4f62
Database tweak and BST bug fix
2018-03-27 10:37:56 +01:00
venusbb
55a27fed13
fixed a bug on reporting_task
2018-03-23 11:40:27 +00:00
venusbb
af975b89ec
primary key for ft_billing should use notification_type
2018-03-21 15:02:08 +00:00
venusbb
cf019864e2
Preserve 'unknown' in ft_billing for sms if the provider is not known.
2018-03-21 09:50:34 +00:00
venusbb
07aa44ea82
Add import report_tasks to schedule_tasks.
2018-03-20 16:42:24 +00:00
venusbb
bb95a2784f
Create schedueled job, fixed tests
2018-03-16 09:22:34 +00:00
venusbb
ea70c6454a
Fine-tuning DB model and create taks for data migration
...
- Removed unused columns in ft_billing
- Create tasks for nightly data migration
2018-03-14 17:07:33 +00:00