diff options
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 1ae7fb9..6afd620 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -26,24 +26,21 @@ todo = """ - this is a slow and uncertain function too: cave = getCaveByReference(caveRef) -- pre-compile all the heavily used regular expressions ! - - profile the code to find bad repetitive things, of which there are many. - attach or link a DataIssue to an individual expo (logbook) so that it can be found and deleted - replace explicit 1970 date with a constant EPOCH -- rewrite to use generators rather than storing everything intermediate in lists - to reduce memory impact. +- rewrite to use generators rather than storing everything intermediate in lists - to + reduce memory impact [low priority] - We should ensure logbook.html is utf-8 and stop this crap: file_in = open(logbookfile,'rb') txt = file_in.read().decode("latin1") - - use Fixtures https://docs.djangoproject.com/en/4.1/ref/django-admin/#django-admin-loaddata to cache -data for old logbooks? Not worth it.. - + data for old logbooks? Not worth it.. """ MAX_LOGBOOK_ENTRY_TITLE_LENGTH = 200 BLOG_PARSER_SETTINGS = { # no default, must be explicit |