Skip to content

Commit

Permalink
Updates download error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Dec 30, 2023
1 parent ac70437 commit 26b4206
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"CELERY_BACKEND": "mongodb://localhost:27017/celery",
"DB_URL": "mongodb://localhost:27017",
"DB_NAME": "alfred",
"GOOGLE_APPLICATION_CREDENTIALS": "/cred.json",
"GOOGLE_APPLICATION_CREDENTIALS": "../cred.json",
"ALFRED_SECRET_KEY": "ALFRED_SECRET_KEY"
},
"jinja": false,
Expand Down
43 changes: 22 additions & 21 deletions alfred/main.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
from fastapi import FastAPI, Depends
from fastapi.middleware.gzip import GZipMiddleware
from starlette.staticfiles import StaticFiles
from beanie import init_beanie

from subprocess import run as bash

from alfred.core.routes import authAPI
from alfred.core.routes import videoAPI
from alfred.core.routes import issueAPI
from alfred.core.routes import adminAPI
from alfred.core.routes import fontAPI
from alfred.core.routes import ProjectAPI
from alfred.core.routes import RenderAPI
from alfred.core.routes import previewAPI
from beanie import init_beanie
from fastapi import Depends, FastAPI
from fastapi.middleware.gzip import GZipMiddleware
from starlette.staticfiles import StaticFiles

# from otto.main import app as ottoApi
from alfred.core.utils import get_db
from alfred import docs
from alfred.config import DATA_DIR, STATIC_DIR
from alfred.core.models.users import UserRead, UserUpdate
from alfred.core.routes import (
ProjectAPI,
RenderAPI,
adminAPI,
authAPI,
fontAPI,
issueAPI,
previewAPI,
videoAPI,
)

# from alfred.core.utils.db import deOid
from alfred.core.routes.users import (
fastapi_users,
current_active_user,
current_active_superuser,
current_active_user,
fastapi_users,
)
from alfred.core.models.users import UserRead, UserUpdate
from alfred.core.utils.db import User
from alfred import docs
from alfred.config import DATA_DIR, STATIC_DIR

# from otto.main import app as ottoApi
from alfred.core.utils import get_db
from alfred.core.utils.db import User

app = FastAPI(
title=docs.title,
Expand Down
2 changes: 1 addition & 1 deletion alfred/otto
Submodule otto updated 3 files
+1 −1 otto/config.py
+36 −30 otto/getdata.py
+2 −1 otto/preview.py

0 comments on commit 26b4206

Please sign in to comment.