Skip to content

Commit

Permalink
changes in migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarraann committed Jul 18, 2023
1 parent 42fef8a commit a400b18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# revision identifiers, used by Alembic.
revision = 'e9830f1add4e'
down_revision = '467e85d5e1cd'
down_revision = 'cac478732572'
branch_labels = None
depends_on = None

Expand Down
6 changes: 3 additions & 3 deletions superagi/controllers/vector_dbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from fastapi import APIRouter
from superagi.config.config import get_config
from datetime import datetime
from superagi.helper.time_helper import get_current_time
from superagi.helper.time_helper import get_time_difference
from superagi.models.vector_dbs import Vectordbs
from superagi.helper.auth import get_user_organisation
from superagi.models.vector_db_configs import VectordbConfigs
Expand All @@ -26,8 +26,8 @@ def get_marketplace_vectordb_list():
@router.get("/user/list")
def get_user_connected_vector_db_list(organisation = Depends(get_user_organisation)):
vector_db_list = Vectordbs.get_vector_db_from_organisation(db.session, organisation)
# update_time = get_current_time(vector_db_list["updated_at"], datetime.now())
# vector_db_list["updated_at"] = update_time["years"]
update_time = get_time_difference(vector_db_list["updated_at"], datetime.now())
vector_db_list["updated_at"] = update_time["years"]
return vector_db_list

@router.get("/get/db/details/{vector_db_id}")
Expand Down

0 comments on commit a400b18

Please sign in to comment.