forked from expo/troggle
Better error msg for overwriting 3d files
This commit is contained in:
parent
df43aae33d
commit
c38aa357b7
@ -1145,10 +1145,10 @@ class LoadingSurvex():
|
|||||||
def checkUniqueness(self,fullpath):
|
def checkUniqueness(self,fullpath):
|
||||||
fn = Path(fullpath).name
|
fn = Path(fullpath).name
|
||||||
if fn not in self.uniquename:
|
if fn not in self.uniquename:
|
||||||
self.uniquename[fn] = 1
|
self.uniquename[fn] = [fullpath]
|
||||||
else:
|
else:
|
||||||
self.uniquename[fn] += 1
|
self.uniquename[fn].append(fullpath)
|
||||||
message = f" ! NON-UNIQUE survex filename, overwriting .3d file in expowebcache '{fn}' - '{fullpath}' #{self.uniquename[fn]}"
|
message = f" ! NON-UNIQUE survex filename, overwriting in expowebcache/3d/ '{fn}' - '{self.uniquename[fn]}' #{len(self.uniquename[fn])}"
|
||||||
print(message)
|
print(message)
|
||||||
DataIssue.objects.create(parser='survex', message=message)
|
DataIssue.objects.create(parser='survex', message=message)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user