2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

backport order of operations in reset() and change logbook parser to do paragraphs differently

This commit is contained in:
Philip Sargent 2020-02-20 14:13:38 +00:00
parent de14ecea22
commit c5055e7f34
2 changed files with 3 additions and 3 deletions

View File

@ -90,9 +90,9 @@ def reset():
import_caves()
import_people()
import_surveyscans()
import_survex()
import_logbooks()
import_QMs()
import_survex()
try:
import_tunnelfiles()
except:

View File

@ -183,8 +183,8 @@ def Parseloghtmltxt(year, expedition, txt):
tripcave = "UNKNOWN"
#print("\n", tripcave, "--- ppp", trippeople, len(triptext))
ltriptext = re.sub(r"</p>", "", triptext)
ltriptext = re.sub(r"\s*?\n\s*", " ", ltriptext)
ltriptext = re.sub(r"<p>", "\n\n", ltriptext).strip()
ltriptext = re.sub(r"\s*?\n\s*", "</br>", ltriptext)
ltriptext = re.sub(r"<p>", "</br></br>", ltriptext).strip()
EnterLogIntoDbase(date = ldate, place = tripcave, title = triptitle, text = ltriptext,
trippeople=trippeople, expedition=expedition, logtime_underground=0,
entry_type="html")