This commit is contained in:
j 2017-03-02 22:09:22 +01:00
parent 77df4a4151
commit a477e7a84d
2 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ KEYWORDS = {
"D": [ "D": [
"burial/grave", "burial/grave",
"decay", "decay",
"dispersal", "disaggregation", "dispersal/disaggregation",
"forensics", "forensics",
"human remains", "human remains",
"humidity", "humidity",
@ -61,7 +61,7 @@ KEYWORDS = {
"F": [ "F": [
"fiction", "fiction",
"flight", "flight",
"flora", "fauna", "flora/fauna",
"fluidity", "fluidity",
"forest", "forest",
"friction", "friction",
@ -89,7 +89,7 @@ KEYWORDS = {
"oppression", "oppression",
"rain", "rain",
"river", "river",
"sweat", "labor", "sweat/labor",
"trade", "trade",
"water" "water"
], ],
@ -152,7 +152,7 @@ KEYWORDS = {
"survey" "survey"
], ],
"O": [ "O": [
"india", "china", "india/china",
"ocean", "ocean",
"opium", "opium",
"opium war", "opium war",
@ -208,7 +208,7 @@ KEYWORDS = {
"royalty", "royalty",
"sea", "sea",
"slavery", "slavery",
"society", "state", "society/state",
"soul" "soul"
], ],
"T": [ "T": [

View file

@ -120,7 +120,7 @@ def get_clips(tag):
CLIPS[tag] = list(sorted(clips, key=lambda c: c['id'])) CLIPS[tag] = list(sorted(clips, key=lambda c: c['id']))
with open('CLIPS.json', 'w') as fd: with open('CLIPS.json', 'w') as fd:
json.dump(CLIPS, fd, indent=4, sort_keys=True) json.dump(CLIPS, fd, indent=4, sort_keys=True)
return CLIPS[tag] return CLIPS[tag].copy()
def random_choice(seq, items): def random_choice(seq, items):
n = n_ = len(items) - 1 n = n_ = len(items) - 1