diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-01-30 23:04:11 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-01-30 23:04:11 +0000 |
commit | 3aca0d0c76364c8f9fa3fec43370f54f8270b43f (patch) | |
tree | 135ded90255f67bc00bb2c78a832f4328d05c6d9 /core/views/scans.py | |
parent | e35fccea5d52bd9f64820335a7bf1dbd38e6157e (diff) | |
download | troggle-3aca0d0c76364c8f9fa3fec43370f54f8270b43f.tar.gz troggle-3aca0d0c76364c8f9fa3fec43370f54f8270b43f.tar.bz2 troggle-3aca0d0c76364c8f9fa3fec43370f54f8270b43f.zip |
ruf cleanup imports, bigly.
Diffstat (limited to 'core/views/scans.py')
-rw-r--r-- | core/views/scans.py | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/core/views/scans.py b/core/views/scans.py index e1db7e6..39aebbc 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -1,19 +1,14 @@ import datetime -import os -import re -import stat from pathlib import Path from urllib.parse import unquote as urlunquote -from urllib.parse import urljoin -from urllib.request import urlopen from django.conf import settings -from django.db import transaction from django.http import HttpResponse from django.shortcuts import render from troggle.core.models.caves import GetCaveLookup -from troggle.core.models.survex import SingleScan, SurvexBlock, Wallet +from troggle.core.models.survex import SingleScan, SurvexBlock +from troggle.core.models.wallets import Wallet from troggle.core.models.troggle import DataIssue, Expedition, Person from troggle.core.views.expo import getmimetype @@ -158,7 +153,7 @@ def walletslistperson(request, first_name, last_name): fixsurvextick(w, w.ticks) return manywallets - print(f"-walletslistperson") + print("-walletslistperson") try: if last_name: @@ -176,7 +171,7 @@ def walletslistperson(request, first_name, last_name): manywallets = tickspersonwallet(p) expeditions = Expedition.objects.all() - print(f"--") + print("--") return render( request, "personwallets.html", @@ -209,7 +204,7 @@ def walletslistyear(request, year): return manywallets - print(f"-walletslistyear") + print("-walletslistyear") if year < 1976 or year > 2050: return render(request, "errors/generic.html", {"message": "Year out of range. Must be between 1976 and 2050"}) @@ -219,7 +214,7 @@ def walletslistyear(request, year): manywallets = ticksyearwallet(year) expeditions = Expedition.objects.all() expedition = expeditions.filter(year=year) - print(f"--") + print("--") return render( request, "yearwallets.html", @@ -235,7 +230,7 @@ def walletslistyear(request, year): def cavewallets(request, caveid): """Returns all the wallets for just one cave""" - print(f"-cavewalletsl") + print("-cavewalletsl") Gcavelookup = GetCaveLookup() if caveid in Gcavelookup: @@ -270,7 +265,7 @@ def cavewallets(request, caveid): w.ticks = w.get_ticks() # the complaints in colour form, from the json file on disc fixsurvextick(w, w.ticks) expeditions = Expedition.objects.all() - print(f"--") + print("--") return render( request, "cavewallets.html", |