From ec96fc38629faca8623529e16577fa2b78beff32 Mon Sep 17 00:00:00 2001 From: estromenko Date: Sun, 2 Nov 2025 19:51:55 +0300 Subject: [PATCH] Fix invalid imports --- vacancies/main/bot.py | 1 - .../commands/collect_vacancies_from_telegram_messages.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/vacancies/main/bot.py b/vacancies/main/bot.py index ce74c68..5730701 100644 --- a/vacancies/main/bot.py +++ b/vacancies/main/bot.py @@ -1,6 +1,5 @@ import os import io -import asyncio import traceback from telegram import Update from telegram.ext import filters, ApplicationBuilder, MessageHandler, CommandHandler, ContextTypes diff --git a/vacancies/main/management/commands/collect_vacancies_from_telegram_messages.py b/vacancies/main/management/commands/collect_vacancies_from_telegram_messages.py index b93b3f1..c25ab00 100644 --- a/vacancies/main/management/commands/collect_vacancies_from_telegram_messages.py +++ b/vacancies/main/management/commands/collect_vacancies_from_telegram_messages.py @@ -1,6 +1,6 @@ from django.core.management import BaseCommand import clickhouse_connect -from vacancies.main.vector_store import add_vectors, extract_features, client as qdrant +from vacancies.main.vector_store import add_vectors, extract_features, qdrant_client from vacancies.conf.settings import CLICKHOUSE_HOST, CLICKHOUSE_PORT clickhouse_client = clickhouse_connect.create_client(host=CLICKHOUSE_HOST, port=CLICKHOUSE_PORT) @@ -29,7 +29,7 @@ class Command(BaseCommand): next_page_offset = 0 exist_points_ids = [-1] while next_page_offset is not None: - response = qdrant.scroll( + response = qdrant_client.scroll( collection_name="vacancies", limit=100_000, offset=next_page_offset,