From 2352f10701c188c4f718f2e2bb2a7f9dc0885fd0 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 17 Dec 2019 20:38:49 +0100 Subject: [PATCH] Extra crossref to troggle indexed .svx files inserted --- noinfo/wallets.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/noinfo/wallets.py b/noinfo/wallets.py index a664e7ef6..b0e58a829 100644 --- a/noinfo/wallets.py +++ b/noinfo/wallets.py @@ -4,9 +4,11 @@ import sys, os, operator, urllib, json, re, time # 2017 originally by Martin Green # 2018-08-27 edited Philip Sargent # 2019-03-02 extended to take command line argument of loser_dir and set mod time of index.html to be sane as json file +# 2019-12-17 extra output of links to troggle-generated trip data loser_dir = "/home/expo/loser/" #loser_dir = "/mnt/d/CUCC-Expo/loser/" # when running on Win10/bash +#loser_dir = "/media/philip/SD-huge/CUCC-Expo/loser/" # when running on xubuntu laptop 'barbie' if len(sys.argv) > 1 : if sys.argv[1] != "": @@ -15,7 +17,7 @@ if len(sys.argv) > 1 : print "Loser repo is assumed to be in: " + loser_dir html_base = "%(body)s" -html_year_index = html_base % {"body": "

%(year)s surveys: wallets status

\n

List of trips: expedition/2019 - data taken from.svx files and logbook entries on server

\n

Persons

\n\n

Wallets

\n%(wallets)s
\n

Needing Scanning

\n\n

Website (Guidebook description) needing updating\n

\n\n"} +html_year_index = html_base % {"body": "

%(year)s surveys: wallets status

\n

List of trips: expedition/%(year)s - troggle-processed .svx files and logbook entries on server

\n

Persons

\n\n

Wallets

\n%(wallets)s
\n

Needing Scanning

\n\n

Website (Guidebook description) needing updating\n

\n\n"} html_year_person = "
  • %(person)s
  • \n" html_year_wallet_entry = "%(walletname)s %(cave)s %(name)s %(complaints)s\n" html_person_wallet_entry = "
  • %(walletname)s
  • \n" @@ -60,6 +62,8 @@ people = {} #use dir this file is in to get current year path,year = os.path.split(os.path.dirname(os.path.realpath(__file__))) +print "Year: " + year + for item in sorted(os.listdir(".")): if os.path.isdir(item): files = []