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

Commit

Permalink
Merge pull request #151 from codeforjapan:148-fix-data-error
Browse files Browse the repository at this point in the history
fix #148  data error
  • Loading branch information
halsk authored Sep 15, 2020
2 parents d0db46e + ed6025e commit e470ea4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mynumbercard_data/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def _convert(self, _list: list) -> list:
["","男","女","計","男","女","計","男","女","計","男","女","計"]
という2段組になってしまっているので、ヘッダを一行にして、(*時点)の部分を抜き出して最終列に加える処理を行う
"""
_list = StringUtil.fix_numberfield_error(_list, 1, 13, [0, 1])
population_ymd = StringUtil.extract_date_from_header(
self._list[0][1]).strftime('%Y/%m/%d')
card_ymd = StringUtil.extract_date_from_header(
Expand Down

0 comments on commit e470ea4

Please sign in to comment.