summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-01-30 16:18:19 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-01-30 16:18:19 +0000
commitb29ff618718f4d28ae4e5ae338ef0cf7dfb764b9 (patch)
tree3fbbb69224491cc6feca4e31e1f0944b6263fe51 /parsers
parent58f7cf72d48a89e3bfe32bbde6b47f263121e232 (diff)
downloadtroggle-b29ff618718f4d28ae4e5ae338ef0cf7dfb764b9.tar.gz
troggle-b29ff618718f4d28ae4e5ae338ef0cf7dfb764b9.tar.bz2
troggle-b29ff618718f4d28ae4e5ae338ef0cf7dfb764b9.zip
Renaming class step 2
Diffstat (limited to 'parsers')
-rw-r--r--parsers/logbooks.py6
-rw-r--r--parsers/survex.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index f045252..2f077e8 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -12,7 +12,7 @@ from django.template.defaultfilters import slugify
from parsers.people import GetPersonExpeditionNameLookup, load_people_expos
from troggle.core.models.caves import GetCaveLookup
-from troggle.core.models.logbooks import LogbookEntry, PersonTrip
+from troggle.core.models.logbooks import LogbookEntry, PersonLogEntry
from troggle.core.models.troggle import DataIssue, Expedition
from troggle.core.utils import get_process_memory
@@ -235,7 +235,7 @@ def store_entry_into_database(date, place, tripcave, title, text, trippersons, a
for tripperson, time_underground in trippersons:
lookupAttribs = {"personexpedition": tripperson, "logbook_entry": lbo}
nonLookupAttribs = {"time_underground": time_underground, "is_logbook_entry_author": (tripperson == author)}
- pt = PersonTrip.objects.create(**nonLookupAttribs, **lookupAttribs)
+ pt = PersonLogEntry.objects.create(**nonLookupAttribs, **lookupAttribs)
def parser_date(tripdate, year):
"""Interprets dates in the expo logbooks and returns a correct datetime.date object"""
@@ -668,7 +668,7 @@ def LoadLogbooks():
# Now we serially store the parsed data in the database, updating 3 types of object:
# - Expedition (the 'logbook.html' value)
# - LogBookEntry (text, who when etc.)
- # - PersonTrip (who was on that specific trip mentione din the logbook entry)
+ # - PersonLogEntry (who was on that specific trip mentione din the logbook entry)
for entrytuple in allentries:
date, place, tripcave, triptitle, text, trippersons, author, expedition, tu, tid = entrytuple
store_entry_into_database(date, place, tripcave, triptitle, text, trippersons, author, expedition, tu, tid)
diff --git a/parsers/survex.py b/parsers/survex.py
index 4861817..f3bbaf1 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -340,7 +340,7 @@ class LoadingSurvex:
*team gb, bl
personrole is used to record that a person was on a survex trip, NOT the role they played.
- (NB PersonTrip is a logbook thing, not a survex thing. )
+ (NB PersonLogEntry is a logbook thing, not a survex thing. )
"""
def record_team_member(tm, survexblock):