fix lint errors

This commit is contained in:
Nick Sweeting
2024-04-25 21:36:11 -07:00
parent 1d9e7ec66a
commit 6a6ae7468e
12 changed files with 16 additions and 35 deletions

View File

@@ -2,7 +2,6 @@ __package__ = 'archivebox.api'
from typing import Optional
from django.contrib.auth import authenticate
from ninja import Router, Schema
from api.models import APIToken

View File

@@ -157,7 +157,7 @@ def cli_update(request, args: UpdateCommandSchema):
@router.post("/schedule", response=CLICommandResponseSchema, summary='archivebox schedule [args] [import_path]')
def cli_add(request, args: ScheduleCommandSchema):
def cli_schedule(request, args: ScheduleCommandSchema):
result = schedule(
import_path=args.import_path,
add=args.add,

View File

@@ -1,7 +1,7 @@
__package__ = 'archivebox.api'
from uuid import UUID
from typing import List, Optional, Union
from typing import List, Optional
from datetime import datetime
from django.shortcuts import get_object_or_404