mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 21:46:44 +00:00
Fixes for ruff check
in delete-source.py
This commit is contained in:
parent
2ece2e7f38
commit
da182070f8
@ -1,16 +1,15 @@
|
|||||||
import os
|
|
||||||
import uuid
|
import uuid
|
||||||
from django.utils.translation import gettext_lazy as _
|
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from django.db.transaction import atomic
|
from django.db.transaction import atomic
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
from common.logger import log
|
from common.logger import log
|
||||||
from sync.models import Source, Media, MediaServer
|
from sync.models import Source
|
||||||
from sync.tasks import schedule_media_servers_update
|
from sync.tasks import schedule_media_servers_update
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
|
|
||||||
help = _('Deletes a source by UUID')
|
help = 'Deletes a source by UUID'
|
||||||
|
|
||||||
def add_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
parser.add_argument('--source', action='store', required=True, help=_('Source UUID'))
|
parser.add_argument('--source', action='store', required=True, help=_('Source UUID'))
|
||||||
|
Loading…
Reference in New Issue
Block a user