Skip to content

Commit

Permalink
fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hk669 committed Jul 15, 2024
1 parent 762b890 commit 96dc484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import logging
import asyncio
import settings
from .settings import DEBUG
from typing import List, Optional
from datetime import datetime, timezone
from src.models import RepositoryRecommendation
Expand Down Expand Up @@ -127,7 +127,7 @@ async def get_topic_based_recommendations(user):

def get_chromadb_collection():
try:
if settings.DEBUG:
if DEBUG:
print('Using local chromadb')
project_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
db_path = os.path.join(project_dir, "chroma")
Expand Down

0 comments on commit 96dc484

Please sign in to comment.