Skip to content

Commit

Permalink
Fix and clean imports (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin authored Nov 11, 2024
2 parents 3b0c6a0 + 32909a8 commit d19c11a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions backend/routers/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
import os
import random
from typing import List

import requests
from fastapi import APIRouter, Depends, Form, UploadFile, File, HTTPException, Header
from langchain import requests

from database.apps import private_app_id_exists_db, public_app_id_exists_db, add_public_app, add_private_app, \
get_app_by_id_db, update_private_app, update_public_app, delete_private_app, delete_public_app, \
Expand Down
6 changes: 3 additions & 3 deletions backend/routers/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

import requests
from fastapi import APIRouter, HTTPException, Depends, UploadFile
from fastapi.params import File, Form, Header
from fastapi.params import File, Form

from database.apps import get_app_by_id_db
from database.plugins import get_plugin_usage_history, add_public_plugin, add_private_plugin, \
public_plugin_id_exists_db, private_plugin_id_exists_db
public_plugin_id_exists_db, private_plugin_id_exists_db, get_plugin_by_id_db
from database.redis_db import set_plugin_review, enable_plugin, disable_plugin, increase_plugin_installs_count, \
decrease_plugin_installs_count
from models.app import App
from models.plugin import Plugin, UsageHistoryItem, UsageHistoryType
from utils.other import endpoints as auth
from utils.other.storage import upload_plugin_logo, delete_plugin_logo
from utils.other.storage import upload_plugin_logo
from utils.plugins import get_plugins_data, get_plugin_by_id, get_plugins_data_from_db

router = APIRouter()
Expand Down

0 comments on commit d19c11a

Please sign in to comment.