diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-06 16:37:38 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-06 16:37:38 +0000 |
commit | 94e145adcea17d7a220f459d201c824bfb7ff42d (patch) | |
tree | 5818e6cdd1d26d545a5d806880b740106d2c7709 /parsers/locations.py | |
parent | ccfc44a4234e3fb6b590d79fa76f7e03b6d5dca0 (diff) | |
download | troggle-94e145adcea17d7a220f459d201c824bfb7ff42d.tar.gz troggle-94e145adcea17d7a220f459d201c824bfb7ff42d.tar.bz2 troggle-94e145adcea17d7a220f459d201c824bfb7ff42d.zip |
CASCADE fixes in data model
Diffstat (limited to 'parsers/locations.py')
-rw-r--r-- | parsers/locations.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |