From 94e145adcea17d7a220f459d201c824bfb7ff42d Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 6 Mar 2023 16:37:38 +0000 Subject: CASCADE fixes in data model --- parsers/locations.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'parsers/locations.py') diff --git a/parsers/locations.py b/parsers/locations.py index fbed49b..8384028 100644 --- a/parsers/locations.py +++ b/parsers/locations.py @@ -212,6 +212,11 @@ def LoadPositions(): # But why are we doing this? Why do we need the survexblock id for each of these ? # ..because mostly they don't actually appear in any SVX file. We should match them up # via the cave data, not by this half-arsed syntactic match which almost never works. PMS. + + # It is pointless linking them all to the root survexblock, they don't need it. + # If there is a link to a survexblock it should be the one the station appears in ! + # But we are reading the .pos file so we only know the SurvexFile not the SurvexBlock.. + # ghastly. if False: try: sbqs = SurvexBlock.objects.filter(survexpath=blockpath) -- cgit v1.2.3