ruff removed unused imports

This commit is contained in:
2023-01-19 21:34:09 +00:00
parent 89b0c0862e
commit 1be3a3892c
12 changed files with 64 additions and 117 deletions

View File

@@ -1,21 +1,9 @@
import csv
import datetime
import filecmp
import os
import re
import shutil
import stat
import subprocess
import sys
import types
from functools import reduce
from pathlib import Path
import settings
from troggle.core.models.survex import DrawingFile, SingleScan, Wallet
from troggle.core.models.survex import SingleScan, Wallet
from troggle.core.models.troggle import DataIssue
from troggle.core.utils import save_carefully
from troggle.core.views.scans import datewallet
"""Searches through all the survey scans directories (wallets) in expofiles, looking for images to be referenced.
"""
@@ -138,7 +126,7 @@ def load_all_scans():
# but we also need to check if JSON exists, even if there are no uploaded scan files.
# Here we know there is a rigid folder structure, so no need to look for sub folders
print(f"\n - Checking for wallets where JSON exists, but there may be no uploaded scan files:")
print("\n - Checking for wallets where JSON exists, but there may be no uploaded scan files:")
print(" ", end="")
wjson = 0
contents_path = Path(settings.DRAWINGS_DATA, "walletjson")