Comment Parser Regex service completed
This commit is contained in:
@@ -139,6 +139,7 @@ class ConfigServices:
|
||||
TASK_SEEN_PREFIX: str = "BANK:SERVICES:TASK:SEEN"
|
||||
TASK_DELETED_PREFIX: str = "BANK:SERVICES:TASK:DELETED"
|
||||
TASK_COMMENT_PARSER: str = "BANK:SERVICES:TASK:COMMENT:PARSER"
|
||||
TASK_PREDICT_RESULT: str = "BANK:SERVICES:TASK:COMMENT:RESULT"
|
||||
|
||||
SERVICE_PREFIX_MAIL_READER: str = "MailReader"
|
||||
SERVICE_PREFIX_MAIL_PARSER: str = "MailParser"
|
||||
|
||||
12
ServicesRunner/Depends/schame.txt
Normal file
12
ServicesRunner/Depends/schame.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
generator client {
|
||||
provider = "prisma-client-py"
|
||||
// binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
|
||||
enable_experimental_decimal = true
|
||||
recursive_type_depth = -1
|
||||
interface = "asyncio"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = "postgresql://postgres:password@10.10.2.14:5432/postgres?schema=public"
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
generator client {
|
||||
provider = "prisma-client-py"
|
||||
// binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
|
||||
enable_experimental_decimal = true
|
||||
recursive_type_depth = -1
|
||||
interface = "asyncio"
|
||||
@@ -406,6 +405,7 @@ model account_records {
|
||||
accounting_receipt_number Int @default(0)
|
||||
status_id Int @default(0) @db.SmallInt
|
||||
approved_record Boolean @default(false)
|
||||
is_predicted Boolean @default(false)
|
||||
import_file_name String? @db.VarChar
|
||||
receive_debit Int?
|
||||
receive_debit_uu_id String? @db.VarChar
|
||||
|
||||
@@ -1125,3 +1125,13 @@ class ProcessCommentParserService:
|
||||
Set task requirements in Redis
|
||||
"""
|
||||
return self.service_retriever.redis_handler.set(f'{ConfigServices.TASK_COMMENT_PARSER}', dumps(task_object))
|
||||
|
||||
|
||||
def set_predict_account_record(self, predict_account_record: dict):
|
||||
return self.service_retriever.redis_handler.set(f'{ConfigServices.TASK_PREDICT_RESULT}', dumps(predict_account_record))
|
||||
|
||||
|
||||
def get_predict_account_record(self):
|
||||
if predict_account_record := self.service_retriever.redis_handler.get(f'{ConfigServices.TASK_PREDICT_RESULT}'):
|
||||
return loads(predict_account_record)
|
||||
return None
|
||||
Reference in New Issue
Block a user