From e159d2f1a742630cc39ce303831990acfb7e95b5 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 26 Jun 2023 18:07:47 +0000 Subject: [PATCH] refactor(backups): reorder imports --- selfprivacy_api/backup/__init__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/selfprivacy_api/backup/__init__.py b/selfprivacy_api/backup/__init__.py index 2957832..06c0842 100644 --- a/selfprivacy_api/backup/__init__.py +++ b/selfprivacy_api/backup/__init__.py @@ -1,19 +1,21 @@ -from operator import add -from typing import List, Optional from datetime import datetime, timedelta +from operator import add from os import statvfs - -from selfprivacy_api.models.backup.snapshot import Snapshot +from typing import List, Optional from selfprivacy_api.utils import ReadUserData, WriteUserData from selfprivacy_api.services import get_service_by_id from selfprivacy_api.services.service import Service +from selfprivacy_api.jobs import Jobs, JobStatus + from selfprivacy_api.graphql.queries.providers import ( BackupProvider as BackupProviderEnum, ) +from selfprivacy_api.models.backup.snapshot import Snapshot + from selfprivacy_api.backup.providers.provider import AbstractBackupProvider from selfprivacy_api.backup.providers import get_provider from selfprivacy_api.backup.storage import Storage @@ -23,7 +25,6 @@ from selfprivacy_api.backup.jobs import ( get_restore_job, add_restore_job, ) -from selfprivacy_api.jobs import Jobs, JobStatus DEFAULT_JSON_PROVIDER = { "provider": "BACKBLAZE",