|
47 | 47 | """ |
48 | 48 | from ast import literal_eval |
49 | 49 |
|
50 | | -from django.db import models, transaction |
| 50 | +from django.db import models |
51 | 51 | from django.db.models import JSONField, Q |
52 | | -from django.utils import timezone |
53 | 52 |
|
54 | 53 | from strategy_field.utils import get_attr |
55 | 54 |
|
56 | | -from etools_datamart.apps.etl.exceptions import MaxRecordsException, RequiredIsMissing, RequiredIsRunning |
57 | | -from etools_datamart.apps.etl.loader import BaseLoader, EtlResult, logger, RUN_UNKNOWN |
| 55 | +from etools_datamart.apps.etl.loader import CommonLoader |
58 | 56 | from etools_datamart.apps.sources.source_prp.models import ( |
59 | 57 | CoreCountry, |
60 | 58 | CoreGatewaytype, |
|
69 | 67 | UnicefProgrammedocumentSections, |
70 | 68 | UnicefProgressreport, |
71 | 69 | ) |
72 | | -from etools_datamart.sentry import process_exception |
73 | 70 |
|
74 | 71 | from .base import PrpDataMartModel |
75 | 72 |
|
@@ -177,7 +174,7 @@ def get_locations(self, record: IndicatorIndicatorlocationdata, values, **kwargs |
177 | 174 | levelname=location.gateway.name |
178 | 175 | )) |
179 | 176 | values['locations_data'] = locs |
180 | | - return ", ".join([l['name'] for l in locs]) |
| 177 | + return ", ".join([loc['name'] for loc in locs]) |
181 | 178 |
|
182 | 179 | def get_submitted_by(self, record: IndicatorIndicatorlocationdata, values, **kwargs): |
183 | 180 | user = get_attr(record, 'indicator_report.progress_report.submitted_by') |
|
0 commit comments