Skip to content

Commit

Permalink
Merge pull request #231 from odedsh/master
Browse files Browse the repository at this point in the history
Update the date of documents being parsed (Maya board appointment not…
  • Loading branch information
odedsh authored Feb 3, 2024
2 parents e30c81d + d713bc8 commit 72d076f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def validate(rows):

def filter_by_type(rows):
for row in rows:
# Document Date
document_format_date = datetime.strptime(row['document']['TaarichIdkunMivne'][0], '%d/%m/%Y')
# 'TaarichIdkunMivne' do not try to parse documents from 2008 or before
if row['type'] == 'ת093' and datetime.strptime(row.get('TaarichIdkunMivne','01/01/1970'), '%d/%m/%Y').year > 2008:
if row['type'] == 'ת093' and document_format_date.year > 2008:
yield row


Expand Down

0 comments on commit 72d076f

Please sign in to comment.