mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 11:49:50 +00:00
missing fields on survexblock fixed
This commit is contained in:
@@ -600,9 +600,12 @@ class LoadingSurvex:
|
|||||||
nc = 0
|
nc = 0
|
||||||
ns = 0
|
ns = 0
|
||||||
for sb in chunk:
|
for sb in chunk:
|
||||||
|
sb.save() # simplest is best, if it works
|
||||||
|
continue
|
||||||
|
|
||||||
got_obj, created = SurvexBlock.objects.get_or_create(
|
got_obj, created = SurvexBlock.objects.get_or_create(
|
||||||
_blockid=sb._blockid,
|
_blockid=sb._blockid,
|
||||||
)
|
) # missing most fields
|
||||||
if created:
|
if created:
|
||||||
nc += 1
|
nc += 1
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user