bank and account service is updated
This commit is contained in:
parent
7e4cec2d0b
commit
efb528bd46
|
|
@ -16,7 +16,7 @@ from pydantic import BaseModel
|
||||||
|
|
||||||
from databases.sql_models.company.company import Companies
|
from databases.sql_models.company.company import Companies
|
||||||
from databases.sql_models.identity.identity import People
|
from databases.sql_models.identity.identity import People
|
||||||
from service_account_records.regex_func import category_finder
|
|
||||||
|
|
||||||
|
|
||||||
class InsertBudgetRecord(BaseModel):
|
class InsertBudgetRecord(BaseModel):
|
||||||
|
|
@ -271,6 +271,7 @@ def parse_comment_for_living_space(
|
||||||
def parse_comment_for_build_parts(
|
def parse_comment_for_build_parts(
|
||||||
comment: str, max_build_part: int = 200, parse: str = "DAIRE"
|
comment: str, max_build_part: int = 200, parse: str = "DAIRE"
|
||||||
):
|
):
|
||||||
|
from regex_func import category_finder
|
||||||
results, results_list = category_finder(comment), []
|
results, results_list = category_finder(comment), []
|
||||||
print("results[parse]", results[parse])
|
print("results[parse]", results[parse])
|
||||||
for result in results[parse] or []:
|
for result in results[parse] or []:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ if '/service_account_records' not in list(sys.path):
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from difflib import get_close_matches
|
from difflib import get_close_matches
|
||||||
from service_account_records.configs import AccountConfig
|
from configs import AccountConfig
|
||||||
|
|
||||||
|
|
||||||
def word_straighten(word, ref_list, threshold=0.8):
|
def word_straighten(word, ref_list, threshold=0.8):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue