Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit e470ea4

Browse files
authored
Merge pull request #151 from codeforjapan:148-fix-data-error
fix #148 data error
2 parents d0db46e + ed6025e commit e470ea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mynumbercard_data/converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def _convert(self, _list: list) -> list:
260260
["","男","女","計","男","女","計","男","女","計","男","女","計"]
261261
という2段組になってしまっているので、ヘッダを一行にして、(*時点)の部分を抜き出して最終列に加える処理を行う
262262
"""
263+
_list = StringUtil.fix_numberfield_error(_list, 1, 13, [0, 1])
263264
population_ymd = StringUtil.extract_date_from_header(
264265
self._list[0][1]).strftime('%Y/%m/%d')
265266
card_ymd = StringUtil.extract_date_from_header(

0 commit comments

Comments
 (0)