mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-30 05:21:08 +00:00
Merge pull request #3064 from hughrun/user-migrate
stop pylint constantly whining in user-migration branch
This commit is contained in:
commit
935779b5e3
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
"""Import data from Bookwyrm export files"""
|
"""Import data from Bookwyrm export files"""
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
from django.http import QueryDict
|
from django.http import QueryDict
|
||||||
|
|
||||||
from bookwyrm.models import User
|
from bookwyrm.models import User
|
||||||
|
@ -12,9 +10,10 @@ class BookwyrmImporter:
|
||||||
This is kind of a combination of an importer and a connector.
|
This is kind of a combination of an importer and a connector.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def process_import(
|
def process_import(
|
||||||
self, user: User, archive_file: bytes, settings: QueryDict
|
self, user: User, archive_file: bytes, settings: QueryDict
|
||||||
) -> BookwyrmImportJob: # pylint: disable=no-self-use
|
) -> BookwyrmImportJob:
|
||||||
"""import user data from a Bookwyrm export file"""
|
"""import user data from a Bookwyrm export file"""
|
||||||
|
|
||||||
required = [k for k in settings if settings.get(k) == "on"]
|
required = [k for k in settings if settings.get(k) == "on"]
|
||||||
|
|
Loading…
Reference in a new issue