sort imports using isort. tested.

This commit is contained in:
2023-01-19 18:33:04 +00:00
parent e5a9330a91
commit 939d3970aa
8 changed files with 57 additions and 49 deletions

View File

@@ -1,23 +1,24 @@
import sys
import copy
import os
import re
import time
import copy
import subprocess
import sys
import time
from datetime import date, datetime, timedelta, timezone
from pathlib import Path
from datetime import datetime, timedelta, date, timezone
from django.utils.timezone import get_current_timezone
from django.utils.timezone import make_aware
from django.utils.timezone import get_current_timezone, make_aware
import troggle.settings as settings
from troggle.core.models.caves import Cave, Entrance, QM, LogbookEntry
from troggle.core.utils import get_process_memory, chaosmonkey
from troggle.parsers.people import GetPersonExpeditionNameLookup, known_foreigner
from troggle.parsers.logbooks import GetCaveLookup
from troggle.core.models.caves import QM, Cave, Entrance, LogbookEntry
from troggle.core.models.survex import (SurvexBlock, SurvexDirectory,
SurvexFile, SurvexPersonRole,
SurvexStation, Wallet)
from troggle.core.models.troggle import DataIssue, Expedition
from troggle.core.models.survex import SurvexPersonRole, Wallet, SurvexDirectory, SurvexFile, SurvexBlock, SurvexStation
from troggle.core.utils import chaosmonkey, get_process_memory
from troggle.parsers.logbooks import GetCaveLookup
from troggle.parsers.people import (GetPersonExpeditionNameLookup,
known_foreigner)
'''Imports the tree of survex files following from a defined root .svx file
It also scans the Loser repo for all the svx files, which it loads individually afterwards.
@@ -1602,7 +1603,8 @@ def FindAndLoadSurvex(survexblockroot):
fcollate.write(f";*include {survexfileroot.path}\n")
flinear.write(f"{svx_scan.depthinclude:2} {indent} *include {survexfileroot.path}\n")
import cProfile, pstats
import cProfile
import pstats
from pstats import SortKey
pr = cProfile.Profile()
pr.enable()