Skip to content

Commit

Permalink
Missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 25, 2024
1 parent fc082ba commit 07fe377
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions datapackage_pipelines_budgetkey/pipelines/simpledb/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ def filtered_budget_code(code):
code = code[2:]
return ret[:-1]

def filtered_budget_code_income(code):
if not code:
return None
if not code.startswith('0000'):
return None
code = code[2:]
ret = ''
while code:
ret += code[:2] + '.'
code = code[2:]
return ret[:-1]

def get_filter(func, field_name):
def filter_func(row):
value = row.get(field_name)
Expand Down

0 comments on commit 07fe377

Please sign in to comment.