bank and account service is updated

This commit is contained in:
berkay 2024-12-03 15:53:36 +03:00
parent 7e4cec2d0b
commit efb528bd46
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ from pydantic import BaseModel
from databases.sql_models.company.company import Companies
from databases.sql_models.identity.identity import People
from service_account_records.regex_func import category_finder
class InsertBudgetRecord(BaseModel):
@ -271,6 +271,7 @@ def parse_comment_for_living_space(
def parse_comment_for_build_parts(
comment: str, max_build_part: int = 200, parse: str = "DAIRE"
):
from regex_func import category_finder
results, results_list = category_finder(comment), []
print("results[parse]", results[parse])
for result in results[parse] or []:

View File

@ -6,7 +6,7 @@ if '/service_account_records' not in list(sys.path):
import re
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):