Restyled by isort

This commit is contained in:
Restyled.io
2022-04-03 10:45:55 +00:00
committed by Mungai Geoffrey
parent 076f42b81f
commit 3a699365c8
6 changed files with 20 additions and 26 deletions
+2 -4
View File
@@ -2,14 +2,12 @@
Contains all the folder routes. Contains all the folder routes.
""" """
from app import helpers
import datetime import datetime
import os import os
from flask import Blueprint, request
from app import api from app import api, helpers, settings
from app import settings
from app.lib import folderslib from app.lib import folderslib
from flask import Blueprint, request
folder_bp = Blueprint("folder", __name__, url_prefix="/") folder_bp = Blueprint("folder", __name__, url_prefix="/")
+1 -2
View File
@@ -2,10 +2,9 @@
Contains all the track routes. Contains all the track routes.
""" """
from app import api, instances
from flask import Blueprint, send_file from flask import Blueprint, send_file
from app import instances, api
track_bp = Blueprint("track", __name__, url_prefix="/") track_bp = Blueprint("track", __name__, url_prefix="/")
+10 -14
View File
@@ -2,29 +2,25 @@
This module contains functions for the server This module contains functions for the server
""" """
import time
import os
from io import BytesIO
import random
import datetime import datetime
from typing import List import os
import mutagen import random
import time
import urllib import urllib
from io import BytesIO
from typing import List
import mutagen
import requests import requests
from mutagen.flac import MutagenError from app import api, helpers, instances, models, settings
from app.lib import albumslib, folderslib, playlistlib, watchdoge
from mutagen.flac import FLAC, MutagenError
from mutagen.id3 import ID3 from mutagen.id3 import ID3
from mutagen.flac import FLAC
from progress.bar import Bar
from PIL import Image from PIL import Image
from progress.bar import Bar
# from pprint import pprint # from pprint import pprint
from app import helpers
from app import instances
from app import settings, models
from app import api
from app.lib import watchdoge, folderslib, playlistlib, albumslib
@helpers.background @helpers.background
+3 -3
View File
@@ -2,12 +2,12 @@
This library contains all the functions related to albums. This library contains all the functions related to albums.
""" """
from pprint import pprint
import urllib import urllib
from pprint import pprint
from typing import List from typing import List
from app import models, functions
from app import api, functions, models
from app.lib import trackslib from app.lib import trackslib
from app import api
def create_everything() -> List[models.Track]: def create_everything() -> List[models.Track]:
+3 -3
View File
@@ -4,10 +4,10 @@ This library contains all the functions related to tracks.
import os import os
from typing import List from typing import List
from app import models, instances
from app.lib import albumslib from app import api, instances, models
from app.helpers import remove_duplicates from app.helpers import remove_duplicates
from app import api from app.lib import albumslib
from progress.bar import Bar from progress.bar import Bar
+1
View File
@@ -4,6 +4,7 @@ Contains the functions to prepare the server for use.
import os import os
from app import settings from app import settings