fix mtg
This commit is contained in:
parent
ab976beb5d
commit
e12f68002b
@ -57,7 +57,7 @@ class MTG(object):
|
|||||||
return self.choose_start_words()
|
return self.choose_start_words()
|
||||||
return first_word, second_word
|
return first_word, second_word
|
||||||
else:
|
else:
|
||||||
first_word = random.choice(self.MC[random.choice(self.MC.keys())])
|
first_word = random.choice(self.MC[random.choice(list(self.MC.keys()))])
|
||||||
return self.choose_start_words(first_word, second_word)
|
return self.choose_start_words(first_word, second_word)
|
||||||
|
|
||||||
def generate_text(self, first_word=None, second_word=None, size=30):
|
def generate_text(self, first_word=None, second_word=None, size=30):
|
||||||
|
Loading…
Reference in New Issue
Block a user