Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Commit 4dba46d

Browse files
GDocs sup add (#20)
1 parent bfcc6b1 commit 4dba46d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

design_bot/routes/response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ async def upload_file(
6161
async def upload_link(
6262
user_id: int, video_id: int, response_inp: ResponsePost, _: auth.User = Depends(auth.get_current_user)
6363
) -> ResponseGet:
64-
if "drive.google.com" not in response_inp.content:
65-
raise HTTPException(422, "Invalid content, only GDrive is correct")
64+
if "drive.google.com" not in response_inp.content and "docs.google.com" not in response_inp.content:
65+
raise HTTPException(422, "Invalid content, only GDrive/GDocs is correct")
6666
user: User = db.session.query(User).get(user_id)
6767
if not user:
6868
raise ObjectNotFound(User, user_id)

0 commit comments

Comments
 (0)