File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
local_units/management/commands Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ def numerize(value):
55
55
facilitytype_id_map ["hospitals" ] = facilitytype_id_map ["hospital" ]
56
56
facilitytype_id_map ["pharmacies" ] = facilitytype_id_map ["pharmacy" ]
57
57
facilitytype_id_map ["bloodcentres" ] = facilitytype_id_map ["bloodcenter" ]
58
+ facilitytype_id_map ["bloodcentre" ] = facilitytype_id_map ["bloodcenter" ]
59
+ # facilitytype_id_map["blood"] = facilitytype_id_map["bloodcenter"]
58
60
specializedmedicalservice_id_map ["surgicalspecialties" ] = specializedmedicalservice_id_map ["surgicalspecialities" ]
59
61
60
62
primaryhcc_id_map ["" ] = None
@@ -167,6 +169,8 @@ def numerize(value):
167
169
health .specialized_medical_beyond_primary_level .add (specializedmedicalservice_id_map [f ])
168
170
if f_bls :
169
171
for f in f_bls .split (" " ):
172
+ if f == "blood" :
173
+ print (i , row )
170
174
if bloodservice_id_map [f ]:
171
175
health .blood_services .add (bloodservice_id_map [f ])
172
176
if f_ptf :
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def parse_date(date):
65
65
except ValueError :
66
66
pass
67
67
validated = True
68
- level_id = int (row ["COVERAGECODE" ]) + 1
68
+ level_id = int (row ["COVERAGECODE" ]) # + 1
69
69
local_branch_name = row ["NAME_LOC" ]
70
70
english_branch_name = row ["NAME_EN" ]
71
71
postcode = row ["POSTCODE" ]
@@ -89,19 +89,19 @@ def parse_date(date):
89
89
type_id = type ,
90
90
# is_public=is_public,
91
91
validated = validated ,
92
- local_branch_name = local_branch_name ,
93
- english_branch_name = english_branch_name ,
94
- focal_person_loc = focal_person_loc ,
95
- focal_person_en = focal_person_en ,
92
+ local_branch_name = local_branch_name [: 255 ] ,
93
+ english_branch_name = english_branch_name [: 255 ] ,
94
+ focal_person_loc = focal_person_loc [: 255 ] ,
95
+ focal_person_en = focal_person_en [: 255 ] ,
96
96
location = location ,
97
97
postcode = postcode ,
98
98
address_loc = address_loc ,
99
99
address_en = address_en ,
100
- city_loc = city_loc ,
101
- city_en = city_en ,
100
+ city_loc = city_loc [: 255 ] ,
101
+ city_en = city_en [: 255 ] ,
102
102
phone = phone ,
103
- email = email ,
104
- link = link ,
103
+ email = email [: 255 ] ,
104
+ link = link [: 255 ] ,
105
105
source_loc = source_loc ,
106
106
source_en = source_en ,
107
107
date_of_data = date_of_data ,
You can’t perform that action at this time.
0 commit comments