mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
rename data issue tag
This commit is contained in:
parent
78a62a1551
commit
b60e1f2493
@ -323,7 +323,7 @@ class LoadingSurvex():
|
|||||||
perps = get_people_on_trip(survexblock) # What, you don't know Judge Dredd slang ?
|
perps = get_people_on_trip(survexblock) # What, you don't know Judge Dredd slang ?
|
||||||
message = f"! DATE Warning only accurate to the month, setting to 1st '{oline}' ({survexblock}) {survexblock.survexfile.path} {perps}"
|
message = f"! DATE Warning only accurate to the month, setting to 1st '{oline}' ({survexblock}) {survexblock.survexfile.path} {perps}"
|
||||||
print(self.insp+message)
|
print(self.insp+message)
|
||||||
DataIssue.objects.create(parser='survex-date', message=message, url=get_offending_filename(survexblock.survexfile.path))
|
DataIssue.objects.create(parser='svxdate', message=message, url=get_offending_filename(survexblock.survexfile.path))
|
||||||
survexblock.date = datetime.strptime(line.replace('.','-'), '%Y-%m') # sets to first of month
|
survexblock.date = datetime.strptime(line.replace('.','-'), '%Y-%m') # sets to first of month
|
||||||
setdate(year)
|
setdate(year)
|
||||||
elif len(line) == 4:
|
elif len(line) == 4:
|
||||||
@ -331,7 +331,7 @@ class LoadingSurvex():
|
|||||||
perps = get_people_on_trip(survexblock)
|
perps = get_people_on_trip(survexblock)
|
||||||
message = f"! DATE WARNING only accurate to the YEAR, setting to 1st January '{oline}' ({survexblock}) {survexblock.survexfile.path} {perps}"
|
message = f"! DATE WARNING only accurate to the YEAR, setting to 1st January '{oline}' ({survexblock}) {survexblock.survexfile.path} {perps}"
|
||||||
print(self.insp+message)
|
print(self.insp+message)
|
||||||
DataIssue.objects.create(parser='survex-date', message=message, url=get_offending_filename(survexblock.survexfile.path))
|
DataIssue.objects.create(parser='svxdate', message=message, url=get_offending_filename(survexblock.survexfile.path))
|
||||||
survexblock.date = datetime.strptime(line, '%Y') # sets to January 1st
|
survexblock.date = datetime.strptime(line, '%Y') # sets to January 1st
|
||||||
setdate(year)
|
setdate(year)
|
||||||
else:
|
else:
|
||||||
@ -1550,7 +1550,7 @@ def LoadSurvexBlocks():
|
|||||||
SurvexStation.objects.all().delete()
|
SurvexStation.objects.all().delete()
|
||||||
print(" - survex Data Issues flushed")
|
print(" - survex Data Issues flushed")
|
||||||
DataIssue.objects.filter(parser='survex').delete()
|
DataIssue.objects.filter(parser='survex').delete()
|
||||||
DataIssue.objects.filter(parser='survex-date').delete()
|
DataIssue.objects.filter(parser='svxdate').delete()
|
||||||
DataIssue.objects.filter(parser='survexleg').delete()
|
DataIssue.objects.filter(parser='survexleg').delete()
|
||||||
DataIssue.objects.filter(parser='survexunits').delete()
|
DataIssue.objects.filter(parser='survexunits').delete()
|
||||||
DataIssue.objects.filter(parser='entrances').delete()
|
DataIssue.objects.filter(parser='entrances').delete()
|
||||||
|
Loading…
Reference in New Issue
Block a user