Skip to content

Commit 903625b

Browse files
committed
Fix get vote place error
1 parent 1c6a90e commit 903625b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

extra-addons/vote_map_data/controllers/controllers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def vote_data_get_place(self, vote_type, city, place):
5353
dataset = http.request.env['vote_data'].sudo().search(
5454
[('vote_type', '=', vote_type), ('city', '=', city), ('place', '=', place)])
5555
districts = [i.district for i in dataset]
56-
for i in dataset:
57-
districts.append(i.district)
5856
results = json.dumps({'data': districts})
5957
return results
6058

0 commit comments

Comments
 (0)