Restyled by reorder-python-imports

This commit is contained in:
Restyled.io 2022-04-03 10:45:56 +00:00 committed by Mungai Geoffrey
parent 3a699365c8
commit dc683e6314
7 changed files with 26 additions and 17 deletions

View File

@ -1,13 +1,15 @@
""" """
Contains all the folder routes. Contains all the folder routes.
""" """
import datetime import datetime
import os import os
from app import api, helpers, settings from app import api
from app import helpers
from app import settings
from app.lib import folderslib from app.lib import folderslib
from flask import Blueprint, request from flask import Blueprint
from flask import request
folder_bp = Blueprint("folder", __name__, url_prefix="/") folder_bp = Blueprint("folder", __name__, url_prefix="/")

View File

@ -1,9 +1,10 @@
""" """
Contains all the track routes. Contains all the track routes.
""" """
from app import api
from app import api, instances from app import instances
from flask import Blueprint, send_file from flask import Blueprint
from flask import send_file
track_bp = Blueprint("track", __name__, url_prefix="/") track_bp = Blueprint("track", __name__, url_prefix="/")

View File

@ -1,7 +1,6 @@
""" """
This module contains functions for the server This module contains functions for the server
""" """
import datetime import datetime
import os import os
import random import random
@ -12,9 +11,17 @@ from typing import List
import mutagen import mutagen
import requests import requests
from app import api, helpers, instances, models, settings from app import api
from app.lib import albumslib, folderslib, playlistlib, watchdoge from app import helpers
from mutagen.flac import FLAC, MutagenError from app import instances
from app import models
from app import settings
from app.lib import albumslib
from app.lib import folderslib
from app.lib import playlistlib
from app.lib import watchdoge
from mutagen.flac import FLAC
from mutagen.flac import MutagenError
from mutagen.id3 import ID3 from mutagen.id3 import ID3
from PIL import Image from PIL import Image
from progress.bar import Bar from progress.bar import Bar

View File

@ -1,12 +1,13 @@
""" """
This library contains all the functions related to albums. This library contains all the functions related to albums.
""" """
import urllib import urllib
from pprint import pprint from pprint import pprint
from typing import List from typing import List
from app import api, functions, models from app import api
from app import functions
from app import models
from app.lib import trackslib from app.lib import trackslib

View File

@ -1,11 +1,12 @@
""" """
This library contains all the functions related to tracks. This library contains all the functions related to tracks.
""" """
import os import os
from typing import List from typing import List
from app import api, instances, models from app import api
from app import instances
from app import models
from app.helpers import remove_duplicates from app.helpers import remove_duplicates
from app.lib import albumslib from app.lib import albumslib
from progress.bar import Bar from progress.bar import Bar

View File

@ -1,8 +1,6 @@
""" """
Contains the functions to prepare the server for use. Contains the functions to prepare the server for use.
""" """
import os import os
from app import settings from app import settings

View File

@ -1,7 +1,6 @@
""" """
Contains default configs Contains default configs
""" """
import os import os
# paths # paths