mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-09 07:14:36 +00:00
Documenting how to add a new year and new people in folk.csv and test that it works by running the databaseRest.py people command
This commit is contained in:
59
handbook/computing/folkupdate.html
Normal file
59
handbook/computing/folkupdate.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>CUCC Expedition Handbook: People Update</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
||||
<h1>The list of people on expo</h1>
|
||||
|
||||
<p>These are nerd-instructions. Find a nerd if you think this needs to be done.
|
||||
|
||||
<h3 id="import">The folk list</a></h3>
|
||||
<p>This is part of the <a href="newyear.html">"new expo year"</a> preparations.
|
||||
The folk.csv file is stored on the server under version control in the ::expoweb:: repository in
|
||||
<code>expoweb/folk/folk.csv</code>
|
||||
|
||||
<p>Before expo starts the folk.csv file is updated.
|
||||
|
||||
<p>Edit folk/folk.csv, adding the new year to the end of the header line, a new column, with just a comma (blank cell) for people who weren't there, a 1 for people who are there, and a -1 for people who are there but didn't go caving.
|
||||
This is adding an extra column to every line in the file.
|
||||
<p>
|
||||
Add new lines for new people, with the right number of columns.
|
||||
|
||||
<p>This process is tedious and error-prone and ripe for improvement especially as expo proceeds and youhave many more names to add. Adding a list of people from the bier book and their aliases (the name in brackets) would be a lot better, but some way to make sure that names match with previous years would be good.
|
||||
|
||||
<p>
|
||||
Contrary to what you might expect we find that it is much more reliable to edit this using a text editor rather than a spreadsheet program.
|
||||
|
||||
<p>The nerd can log in using the 'expo' userid.
|
||||
|
||||
<p>The nerd needs to do this:
|
||||
<ol>
|
||||
<li>Upload the edited copy of folk.csv to the server using the version control system.
|
||||
<li>Log in to the expo server and run the update script (see below for details)
|
||||
<li>Watch any error messages scroll by.
|
||||
<li>Look at the new folk list HTML file at <a href="http://expo.survex.com/folk/">http://expo.survex.com/folk/</a>
|
||||
<li>Re-run the import script until you have got rid of all the import errors.
|
||||
</ol>
|
||||
<p>This is how you login and run the script:
|
||||
<pre><code>ssh expo@expo.survex.com
|
||||
cd folk
|
||||
python ../scripts/make-folklist.py <folk.csv >index.htm
|
||||
</code></pre>
|
||||
<p>If there are no errors, you will just see this on your ssh session:
|
||||
|
||||
<pre><codeLoading expeditions
|
||||
Loading personexpeditions
|
||||
</code></pre>
|
||||
|
||||
<p>And you will see the result online at <a href="http://expo.survex.com/folk/">http://expo.survex.com/folk/</a>.
|
||||
<p>It is recommended that the nerd does this locally on their own laptop first. It does not need to be an expo laptop, even a Windows 10 laptop is fine if the script is run in a WSL terminal. The only software you need to install is the default python package.
|
||||
|
||||
<hr />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -38,17 +38,8 @@
|
||||
<li>create initial versions of the bierbook and the seshbook in expoweb/documents/bierbook (the final copies after expo will be scanned and put in e.g. expofiles/writeups/2020/ along with the scanned logbook).
|
||||
<li>copy the contents of the previous year's expoweb/years/ folder, e.g. /2019/ to 2020/ and edit all the files therein. You should start with at least an index.html and a mission.html
|
||||
</ul>
|
||||
<p>Edit folk/folk.csv, adding the new year to the end of the header
|
||||
line, a new column, with just a comma (blank
|
||||
cell) for people who weren't there, a 1 for people who were there, and
|
||||
a -1 for people who were there but didn't go caving. Add new lines for
|
||||
new people, with the right number of columns.</p>
|
||||
|
||||
<p>This proces is tedious and error-prone and ripe for improvement.
|
||||
Adding a list of people, from the bier book, and their aliases would be
|
||||
a lot better, but some way to make sure that names match with previous
|
||||
years would be
|
||||
good.</p>
|
||||
<p>Edit folk/folk.csv according to the instructions in the <a href="folkupdate.html">Folk Update process</a>
|
||||
</p>
|
||||
|
||||
Return to the main <a href="../manual.html">online systems manual</a>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user