summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/css/trog3.css24
-rw-r--r--parsers/logbooks.py12
2 files changed, 17 insertions, 19 deletions
diff --git a/media/css/trog3.css b/media/css/trog3.css
index 54e6e84..990634a 100644
--- a/media/css/trog3.css
+++ b/media/css/trog3.css
@@ -191,21 +191,19 @@ img.icon { vertical-align: middle; }
img.aligntop { vertical-align: top; }
blockquote {
font: Georgia, "Times New Roman", Times, serif;
- font-weight:bold;
- font-variant:small-caps;
- width: 400px;
- background: url(../close-quote.gif) no-repeat right bottom;
- padding-left: 25px;
- text-indent: -25px;
- text-align: right;
+ width: 80%;
+ /* width: 400px; */
+ padding-left: 8;
+ /* text-indent: -25px; */
+ text-align: left;
vertical-align:bottom;
- color:#CCCC66;
-}
-blockquote:first-letter {
- background: url(../open-quote.gif) no-repeat left top;
- padding-left: 40px;
- font: italic 1.4em Georgia, "Times New Roman", Times, serif;
+ color:#4444dd;
}
+/* blockquote:first-letter { */
+ /* background: url(../open-quote.gif) no-repeat left top; */
+ /* padding-left: 40px; */
+ /* font: italic 1.4em Georgia, "Times New Roman", Times, serif; */
+/* } */
table.imgtable { margin-left: auto; margin-right: auto; }
table.imgtable td { vertical-align: middle; text-align: center;
padding: 10px; }
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index d194a5e..aaa764a 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -49,9 +49,9 @@ data for old logbooks. New design needed, with a mechanism for flagging fixtures
'''
MAX_LOGBOOK_ENTRY_TITLE_LENGTH = 200
BLOG_PARSER_SETTINGS = {
-# "2022": ("ukcavingblog.html", "parser_blog"),
- "2019": ("ukcavingblog.html", "parser_blog"),
-# "2018": ("ukcavingblog.html", "parser_blog"),
+# "2022": ("ukcavingblog.html", "parser_blog"),
+# "2019": ("ukcavingblog.html", "parser_blog"),
+# "2018": ("ukcavingblog.html", "parser_blog"),
# "2017": ("ukcavingblog.html", "parser_blog"), # now folded in to logbooks.html
}
DEFAULT_LOGBOOK_FILE = "logbook.html"
@@ -582,7 +582,7 @@ def parser_blog(year, expedition, txt, sq=""):
tripcontent = re.sub(r"width: \d+px","",tripcontent)
tripcontent = re.sub(r"\n\n+","\n\n",tripcontent)
tripcontent = re.sub(r"<hr\s*>","",tripcontent)
- tripcontent = f"\n\nBlog Author: {trippeople}" + tripcontent
+ tripcontent = f"\n\n<!-- Content parsed from UK Caving Blog -->\nBlog Author: {trippeople}" + tripcontent
entrytuple = (tripdate, location, tripname, tripcontent,
trippeople, expedition, tu, tid)
@@ -689,7 +689,7 @@ def LoadLogbookForExpedition(expedition, clean=True):
# print(f"OK {year} {len(logentries):5d} is {expect}\n")
pass
else:
- print(f"Mismatch {year} {len(logentries):5d} is not {expect}\n")
+ print(f"Mismatch in number of log entries: {year} {len(logentries):5d} is not {expect}\n")
return len(logentries)
@@ -709,7 +709,7 @@ def LoadLogbook(year):
LOGBOOK_PARSER_SETTINGS[year] = BLOG_PARSER_SETTINGS[year]
nlbe[expo] = LoadLogbookForExpedition(expo, clean=False) # this loads the blog logbook for one expo
else:
- print(f" {year} not in {BLOG_PARSER_SETTINGS}")
+ print(f"Not a year with extant blog entries to import: '{year}' not in BLOG_PARSER_SETTINGS {BLOG_PARSER_SETTINGS}")
def LoadLogbooks():
""" This is the master function for parsing all logbooks into the Troggle database.