From e1d7b350159ba577cfa791da7ea43726e4516796 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 14 Jun 2025 14:12:13 +0300 Subject: documentaiton for Becka as to where to find drawings files --- parsers/drawings.py | 5 ++++- parsers/logbooks.py | 1 + templates/dwgfiles.html | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/parsers/drawings.py b/parsers/drawings.py index f34cd70..309926e 100644 --- a/parsers/drawings.py +++ b/parsers/drawings.py @@ -16,11 +16,14 @@ todo = """ - Rename functions more consistently between tunnel and therion variants - Refactor to use pathlib instead of whacky resetting of loop variable inside loop - to scan sub-folders. + to scan sub-folders. This will definitely break at some point.. - Recode rx_valid_ext to use pathlib suffix() function - Recode load_drawings_files() to use a list of suffices - not the huge if-else monstrosity + +- implement: findimportinsert(therionfile, imp) + Tries to link the scrap (Therion format) to the referenced therion scrap """ rx_valid_ext = re.compile(r"(?i)\.(?:png|jpg|pdf|jpeg|gif|txt)$") diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 3c1d3f5..b53756b 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -58,6 +58,7 @@ LOGBOOK_PARSER_SETTINGS = { LOGBOOKS_DIR = "years" # subfolder of settings.EXPOWEB ENTRIES = { + "2025": 1, "2024": 127, "2023": 131, "2022": 94, diff --git a/templates/dwgfiles.html b/templates/dwgfiles.html index 8325d87..cfda968 100644 --- a/templates/dwgfiles.html +++ b/templates/dwgfiles.html @@ -3,7 +3,14 @@ {% block title %}Drawings files{% endblock %} {% block content %} +

All Tunnel and Therion files - in the repository

+

You can see an up to date list of drawings files by looking at +the drawings repository. This is up to date even if the upload +has been done after the most recent database reset. +

All Tunnel and Therion files - linked to wallets, survey scans, frames and scraps

+

This is the list of drawings as at the most recent database reset. + -- cgit v1.2.3
Drawing (Tunnel or Therion) FileSizePathsWalletsScan files in the walletsFrames