mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 05:17:34 +00:00
Removed unused properties and moving
This commit is contained in:
@@ -1390,7 +1390,6 @@ class LoadingSurvex:
|
||||
name=blkid,
|
||||
parent=survexblock,
|
||||
survexpath=pathlist,
|
||||
cave=self.currentcave,
|
||||
survexfile=self.currentsurvexfile,
|
||||
legsall=0,
|
||||
legslength=0.0,
|
||||
@@ -2050,7 +2049,7 @@ def LoadSurvexBlocks():
|
||||
survexfileroot = MakeSurvexFileRoot()
|
||||
# this next makes a block_object assciated with a file_object.path = SURVEX_TOPNAME
|
||||
survexblockroot = SurvexBlock(
|
||||
name=ROOTBLOCK, survexpath="", cave=None, survexfile=survexfileroot, legsall=0, legslength=0.0
|
||||
name=ROOTBLOCK, survexpath="", survexfile=survexfileroot, legsall=0, legslength=0.0
|
||||
)
|
||||
# crashes here sometimes on MariaDB complaining that cave_id should not be null. But it should be.
|
||||
# django.db.utils.IntegrityError: (1048, "Column 'cave_id' cannot be null")
|
||||
@@ -2061,7 +2060,7 @@ def LoadSurvexBlocks():
|
||||
|
||||
omitsfileroot = MakeOmitFileRoot("_unseens.svx")
|
||||
survexomitsroot = SurvexBlock(
|
||||
name=OMITBLOCK, survexpath="", cave=None, survexfile=omitsfileroot, legsall=0, legslength=0.0
|
||||
name=OMITBLOCK, survexpath="", survexfile=omitsfileroot, legsall=0, legslength=0.0
|
||||
)
|
||||
survexomitsroot.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user