Browse Source

the link between description and diverge worksgit add -A

master
Cristina Cochior 6 years ago
parent
commit
b56df181d7
  1. 2
      generate_links.py
  2. BIN
      static/files/00/Participants.html
  3. BIN
      static/files/00/PushingScores.html
  4. BIN
      static/files/00/events.html
  5. BIN
      static/files/01/01.metadata.html
  6. BIN
      static/files/02/02.metadata.html
  7. BIN
      static/files/03/03.metadata.html
  8. BIN
      static/files/05/05.metadata.html
  9. BIN
      static/files/17/17.blurb.html

2
generate_links.py

@ -15,7 +15,7 @@ for path, subdirs, files in os.walk(path):
textfile = f.read() textfile = f.read()
for word in wordlist_dict: for word in wordlist_dict:
word = re.escape(word) word = re.escape(word)
textfile = re.sub(r"(?<!<)(?<!</)(?<!ge\?)\b(%s)\b" %word, r"<a href='/diverge?search='\1'>\1</a>", textfile) textfile = re.sub(r"(?<!<)(?<!</)(?<!ge\?)\b(%s)\b" %word, r"<a href='/diverge?search=\1'>\1</a>", textfile)
f.truncate(0) f.truncate(0)
f.write(textfile) f.write(textfile)
f.truncate() f.truncate()

BIN
static/files/00/Participants.html

Binary file not shown.

BIN
static/files/00/PushingScores.html

Binary file not shown.

BIN
static/files/00/events.html

Binary file not shown.

BIN
static/files/01/01.metadata.html

Binary file not shown.

BIN
static/files/02/02.metadata.html

Binary file not shown.

BIN
static/files/03/03.metadata.html

Binary file not shown.

BIN
static/files/05/05.metadata.html

Binary file not shown.

BIN
static/files/17/17.blurb.html

Binary file not shown.
Loading…
Cancel
Save