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

View File

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