forked from expo/troggle
Better display of wallet names copied from svx files
This commit is contained in:
@@ -72,6 +72,10 @@ def load_all_scans():
|
||||
and builds up the models we can access later.
|
||||
It does NOT read or validate anything in the JSON data attached to each wallet. Those checks
|
||||
are done at runtime, when a wallet is accessed, not at import time.
|
||||
|
||||
NOTE that parsers/survex.py does NOT create a wallet if it finds an unrecognised *REF wallet.
|
||||
Instead it reports an error in DataIssues. But it does make a link in the db between the
|
||||
existing wallet (probably no JSON, just a folder containing scans) and the survex file.
|
||||
'''
|
||||
print(' - Loading Survey Scans')
|
||||
|
||||
@@ -113,7 +117,7 @@ def load_all_scans():
|
||||
|
||||
|
||||
else:
|
||||
# but We should load all the scans, even for nonstandard names.
|
||||
# but We *should* load all the scans, even for nonstandard names.
|
||||
print(f'\n - IGNORE {walletname} - {fpath}')
|
||||
|
||||
# but we also need to check if JSON exists, even if there are no uploaded scan files
|
||||
|
||||
@@ -514,7 +514,7 @@ class LoadingSurvex():
|
||||
print(manywallets[0])
|
||||
survexblock.save()
|
||||
if len(manywallets) > 1:
|
||||
message = " ! Wallet *REF {} - more than one found {} scan folders in {}".format(refscan, len(manywallets), survexblock.survexfile.path)
|
||||
message = " ! Wallet *REF {} - more than one found {} scan folders in block {}".format(refscan, len(manywallets), survexblock.survexfile.path)
|
||||
print(self.insp+message)
|
||||
DataIssue.objects.create(parser='survex', message=message, url=url)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user