bank and account service is updated
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import sys
|
||||
|
||||
if '/service_app_banks' not in list(sys.path):
|
||||
sys.path.append('/service_app_banks')
|
||||
|
||||
from api_services.email.service import send_email
|
||||
from api_library.date_time_actions.date_functions import client_arrow
|
||||
from databases import AccountRecords
|
||||
|
||||
|
||||
def send_mail_to_users_that_have_received_email_from_banks():
|
||||
from databases import AccountRecords
|
||||
|
||||
print("Service is booting up")
|
||||
print("Sending mail to users that have received email from banks")
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import sys
|
||||
|
||||
if '/service_app_banks' not in list(sys.path):
|
||||
sys.path.append('/service_app_banks')
|
||||
|
||||
import os
|
||||
import json
|
||||
import arrow
|
||||
@@ -7,6 +12,9 @@ from logging import getLogger, basicConfig, INFO
|
||||
from config_isbank import Config
|
||||
from pydantic import BaseModel
|
||||
|
||||
from databases import AccountRecords
|
||||
from api_library.date_time_actions.date_functions import system_arrow
|
||||
|
||||
logger = getLogger(__name__)
|
||||
basicConfig(filename=__name__, level=INFO)
|
||||
|
||||
@@ -60,11 +68,7 @@ def sender_service():
|
||||
|
||||
|
||||
def is_bank_retrieve_account_records(bank_data):
|
||||
from databases import AccountRecords
|
||||
from api_library.date_time_actions.date_functions import system_arrow
|
||||
|
||||
data_bulk = json.loads(bank_data)
|
||||
|
||||
new_record_list = []
|
||||
for data_keys in data_bulk: # data_bulk is a dict
|
||||
for data_dict in data_bulk[data_keys]: # data_bulk[data_keys] is a list
|
||||
|
||||
Reference in New Issue
Block a user