diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-23 20:24:05 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-23 20:24:05 +0300 |
commit | 1694d0153609ec85d04a328004a867ac61103490 (patch) | |
tree | 7b968d13dbdd5cb0048ae7c5e63ff00505ce6d08 /core/views/scans.py | |
parent | 2b960865351ff8841c098a5e559847a2f4f909d4 (diff) | |
download | troggle-1694d0153609ec85d04a328004a867ac61103490.tar.gz troggle-1694d0153609ec85d04a328004a867ac61103490.tar.bz2 troggle-1694d0153609ec85d04a328004a867ac61103490.zip |
before big revision to wallet model code
Diffstat (limited to 'core/views/scans.py')
-rw-r--r-- | core/views/scans.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/core/views/scans.py b/core/views/scans.py index fbd5369..2f7c843 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -52,8 +52,7 @@ def populatewallet(w): def caveifywallet(w): - """Gets the caves from the list of survex files, - If called from survex parser, we never need to call it from a view too. + """Gets the block names from the list of blocks, set by the survex parser """ # print(f' - Caveify {w=}') blocknames = [] @@ -133,15 +132,16 @@ def is_cave(wallet, id): return False def fillblankothers(w): - """This is on the way to having a many:many relationship between Caves and Wallets - """ + # has this already been done? Do we need to do it on every refresh ? if not w.walletdate: set_walletdate(w) Gcavelookup = GetCaveLookup() caveifywallet(w) - + + # Is this not done when we scan for wallets when we create them in the first place ? + # needs to be refactored into models/wallets.py anyway wcaveid = w.cave() if not wcaveid or wcaveid == "": if type(wcaveid) == list: @@ -338,8 +338,6 @@ def cavewallets(request, caveid): else: return render(request, "errors/badslug.html", {"badslug": f"{caveid} - from cavewallets()"}) - - # or now: wallets = cave.wallets.all() manywallets = list(set(wallets)) for w in manywallets: |