diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-01-27 23:21:07 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-01-27 23:21:07 +0000 |
commit | e01bd39609ba14232544125cb78ecd3c2ba99ea7 (patch) | |
tree | dd08088940044c91cec910b34bef60018169f4ca /core/views/logbooks.py | |
parent | 6565b3f9c4d93c72f2fd0e7d49b24adaf9f94b9c (diff) | |
download | troggle-e01bd39609ba14232544125cb78ecd3c2ba99ea7.tar.gz troggle-e01bd39609ba14232544125cb78ecd3c2ba99ea7.tar.bz2 troggle-e01bd39609ba14232544125cb78ecd3c2ba99ea7.zip |
refactored logbooks parser
Diffstat (limited to 'core/views/logbooks.py')
-rw-r--r-- | core/views/logbooks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/logbooks.py b/core/views/logbooks.py index 415c7f8..9748aed 100644 --- a/core/views/logbooks.py +++ b/core/views/logbooks.py @@ -18,7 +18,7 @@ from troggle.core.models.caves import LogbookEntry, PersonTrip from troggle.core.models.survex import SurvexBlock, Wallet from troggle.core.models.troggle import Expedition, Person, PersonExpedition from troggle.core.utils import TROG -from troggle.parsers.logbooks import parse_logbook_for_expedition +from troggle.parsers.imports import import_logbook from troggle.parsers.people import GetPersonExpeditionNameLookup from .auth import login_required_if_public @@ -69,7 +69,7 @@ def expedition(request, expeditionname): #print(f'! - delete entry: "{entry}"') entry.delete() entries = this_expedition.logbookentry_set.all() - LoadLogbookForExpedition(this_expedition) + import_logbook(year=this_expedition.year) logged_in = True else: logged_in = False |