mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-08 23:04:35 +00:00
updated logbook parsing docm
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<title>CUCC Expedition Handbook: Logbook import</title>
|
<title>CUCC Expedition Handbook: Logbook import</title>
|
||||||
<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
|
<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
|
||||||
</head>
|
</head>
|
||||||
<body><style>body { background: #fff url(/images/style/bg-system.png) repeat-x 0 0 }</style>>
|
<body><style>body { background: #fff url(/images/style/bg-system.png) repeat-x 0 0 }</style>
|
||||||
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
||||||
<h1>Logbooks Import</h1>
|
<h1>Logbooks Import</h1>
|
||||||
|
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
<p>The nerd needs to do this:
|
<p>The nerd needs to do this:
|
||||||
<ol>
|
<ol>
|
||||||
<li>Look at the list of pre-existing old import errors at </br> <a href="http://expo.survex.com/admin/core/dataissue/">http://expo.survex.com/admin/core/dataissue/</a> </br>
|
<li>Look at the list of pre-existing old import errors at <a href="/dataissues">Data Issues</a> </br>
|
||||||
The nerd will have to login to the troggle management console to do this, not just the usual troggle login.
|
|
||||||
<li>You need to get the list of people on expo sorted out first. </br>
|
<li>You need to get the list of people on expo sorted out first. </br>
|
||||||
This is documented in the <a href="folkupdate.html">Folk Update</a> process.
|
This is documented in the <a href="folkupdate.html">Folk Update</a> process.
|
||||||
<li>Log in to the expo server and run the update script (see below for details)
|
<li>Log in to the expo server and run the update script (see below for details)
|
||||||
@@ -35,10 +35,9 @@ This is documented in the <a href="folkupdate.html">Folk Update</a> process.
|
|||||||
<p>The procedure is like this. It will be familiar to you because
|
<p>The procedure is like this. It will be familiar to you because
|
||||||
you will have already done most of this for the <a href="folkupdate.html">Folk Update</a> process.
|
you will have already done most of this for the <a href="folkupdate.html">Folk Update</a> process.
|
||||||
|
|
||||||
<pre><code>ssh {youruserid}@expo.survex.com
|
<pre><code>ssh expo@expo.survex.com
|
||||||
cd ~expo
|
|
||||||
cd troggle
|
cd troggle
|
||||||
sudo python databaseReset.py logbooks
|
python databaseReset.py logbooks
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>It will produce a list of errors like these below, starting with the most recent logbook which will be the one for the expo you are working on.
|
<p>It will produce a list of errors like these below, starting with the most recent logbook which will be the one for the expo you are working on.
|
||||||
@@ -58,6 +57,13 @@ Calculating GetPersonExpeditionNameLookup for 2017
|
|||||||
|
|
||||||
<p>Errors are usually misplaced or duplicated <hr /> tags, names which are not specific enough to be recognised by the parser (though it tries hard) such as "everyone" or "et al." or are simply missing, or a bit of description which has been put into the names section such as "Goulash Regurgitation".
|
<p>Errors are usually misplaced or duplicated <hr /> tags, names which are not specific enough to be recognised by the parser (though it tries hard) such as "everyone" or "et al." or are simply missing, or a bit of description which has been put into the names section such as "Goulash Regurgitation".
|
||||||
|
|
||||||
|
<p>When you have sorted out the logbooks formatting and it is no longer complaining,
|
||||||
|
you will need to do a full database reset as this will have trashed the online database and none of the troggle webpages will be working:
|
||||||
|
<pre><code>ssh expo@expo.survex.com
|
||||||
|
cd troggle
|
||||||
|
python databaseReset.py reset
|
||||||
|
</code></pre>
|
||||||
|
which takes between 300s and 15 minutes on the server.
|
||||||
<h3 id="history">The logbooks format</h3>
|
<h3 id="history">The logbooks format</h3>
|
||||||
<p>This is documented on the <a href="../logbooks.html#format">logbook user-documentation page</a> as even expoers who can do nothing else technical can at least write up their logbook entries.
|
<p>This is documented on the <a href="../logbooks.html#format">logbook user-documentation page</a> as even expoers who can do nothing else technical can at least write up their logbook entries.
|
||||||
|
|
||||||
@@ -66,6 +72,7 @@ Calculating GetPersonExpeditionNameLookup for 2017
|
|||||||
|
|
||||||
<p>The formatting was largely freeform, with a bit of markup ('===' around header, bars separating date, <place> - <description>, and who) which allows the troggle import script to read it correctly. The underlines show who wrote the entry. There is also a format for time-underground info so it can be automagically tabulated.</p>
|
<p>The formatting was largely freeform, with a bit of markup ('===' around header, bars separating date, <place> - <description>, and who) which allows the troggle import script to read it correctly. The underlines show who wrote the entry. There is also a format for time-underground info so it can be automagically tabulated.</p>
|
||||||
|
|
||||||
|
<!--
|
||||||
<p>So the format should be:</p>
|
<p>So the format should be:</p>
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
@@ -75,6 +82,7 @@ Calculating GetPersonExpeditionNameLookup for 2017
|
|||||||
</br>
|
</br>
|
||||||
T/U: Jess 1 hr, Emma 0.5 hr
|
T/U: Jess 1 hr, Emma 0.5 hr
|
||||||
</code>
|
</code>
|
||||||
|
-->
|
||||||
<p>
|
<p>
|
||||||
<a href="../logbooks.html">Back to Logbooks for Cavers</a> documentation.
|
<a href="../logbooks.html">Back to Logbooks for Cavers</a> documentation.
|
||||||
<hr />
|
<hr />
|
||||||
|
|||||||
Reference in New Issue
Block a user