mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
final review comment + remove unused imports
This commit is contained in:
parent
4ad448ff99
commit
c1ba9b583b
1 changed files with 3 additions and 7 deletions
|
|
@ -5,8 +5,6 @@ import boto3
|
|||
import json
|
||||
import math
|
||||
import asyncio
|
||||
from contextlib import contextmanager
|
||||
from sqlmodel import Session
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
|
|
@ -14,12 +12,10 @@ from fastapi import APIRouter, Depends
|
|||
from backend.app.dependencies import validate_token
|
||||
from backend.app.plan.schemas import PlanTriggerRequest
|
||||
from backend.app.config import get_settings
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from backend.categorisation.categorisation_trigger_request import (
|
||||
CategorisationTriggerRequest,
|
||||
)
|
||||
from utils.logger import setup_logger
|
||||
from backend.app.db.connection import db_engine
|
||||
|
||||
from backend.app.db.functions.recommendations_functions import (
|
||||
create_scenario,
|
||||
|
|
@ -63,9 +59,9 @@ async def trigger_categorisation(
|
|||
|
||||
num_property_batches: int = math.ceil(len(property_ids) / properties_per_batch)
|
||||
|
||||
print("total_plans_to_update", total_plans_to_update)
|
||||
print("properties_per_batch", properties_per_batch)
|
||||
print("num_property_buckets", num_property_batches)
|
||||
logger.info("total_plans_to_update", total_plans_to_update)
|
||||
logger.info("properties_per_batch", properties_per_batch)
|
||||
logger.info("num_property_buckets", num_property_batches)
|
||||
|
||||
# Create task
|
||||
task_id, _ = TasksInterface.create_task(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue