Skip to content

Commit

Permalink
Unit Test Fix (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferlinx101 authored Sep 4, 2023
1 parent e5fe0a5 commit 0e5abbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superagi/controllers/models_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ def get_knowledge_list(page: int = 0, organisation=Depends(get_user_organisation

@router.get("/marketplace/list/{page}", status_code=200)
def get_marketplace_knowledge_list(page: int = 0):
organisation_id = int(get_config("MARKETPLACE_ORGANISATION_ID"))
organisation_id = get_config("MARKETPLACE_ORGANISATION_ID")
if organisation_id is not None:
organisation_id = int(organisation_id)
page_size = 16

query = db.session.query(Models).filter(Models.org_id == organisation_id)
Expand Down

0 comments on commit 0e5abbc

Please sign in to comment.