mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 21:48:35 +03:00
adds admin access to /sheet/archive endpoint by sheet_id
This commit is contained in:
@@ -370,6 +370,10 @@ def create_sheet(
|
||||
return db_sheet
|
||||
|
||||
|
||||
def get_sheet_by_id(db: Session, sheet_id: str) -> models.Sheet:
|
||||
return db.query(models.Sheet).filter(models.Sheet.id == sheet_id).first()
|
||||
|
||||
|
||||
def get_user_sheet(db: Session, email: str, sheet_id: str) -> models.Sheet:
|
||||
return (
|
||||
db.query(models.Sheet)
|
||||
|
||||
Reference in New Issue
Block a user