events initated first endpoint tested

This commit is contained in:
2025-01-30 16:56:40 +03:00
parent b664f64eb4
commit 9781cae858
31 changed files with 576 additions and 521 deletions

View File

@@ -16,7 +16,7 @@ from sqlalchemy import (
from sqlalchemy.orm import mapped_column, relationship, Mapped
from Services.PostgresDb import CrudCollection
# from config import ApiStatic
from config import ApiStatic
from ApiLayers.ApiLibrary.date_time_actions.date_functions import system_arrow
from ApiLayers.ApiLibrary.extensions.select import (
@@ -204,7 +204,7 @@ class Users(CrudCollection, SelectAction):
return created_user
def get_employee_and_duty_details(self):
from Schemas import Employees, Duties
from ApiLayers.Schemas import Employees, Duties
db_session = self.new_session()
found_person = People.filter_one(
@@ -244,7 +244,7 @@ class Users(CrudCollection, SelectAction):
}
def get_main_domain_and_other_domains(self, get_main_domain: bool = True):
from Schemas import MongoQueryIdentity
from ApiLayers.Schemas import MongoQueryIdentity
query_engine = MongoQueryIdentity(company_uuid=self.related_company)
domain_via_user = query_engine.get_domain_via_user(user_uu_id=str(self.uu_id))
@@ -391,7 +391,7 @@ class People(CrudCollection, SelectAction):
@classmethod
def create_action(cls, data: InsertPerson, token):
from Schemas import Duties
from ApiLayers.Schemas import Duties
token_duties_id, token_company_id = (
token.selected_company.duty_id,