noun count should not be used to end sentances

what in the world was i thinking, and how did i not notice this sooner?
This commit is contained in:
xfnw 2022-03-09 14:00:51 -07:00
parent 7af2f8f675
commit 7348ef0354

View file

@ -78,7 +78,7 @@ async def genOut(self, noun):
out = [noun] out = [noun]
while ( while (
beg.find_one(word=out[0]) is None beg.find_one(word=out[0]) is None
or nouns.count(word=out[0]) - 1 > iter * shared.enmul or beg.count(word=out[0]) - 1 > iter * shared.enmul
) and iter < shared.maxiter: ) and iter < shared.maxiter:
try: try:
out = [ out = [
@ -101,7 +101,7 @@ async def genOut(self, noun):
iter = 0 iter = 0
while ( while (
end.find_one(word=out[-1]) is None end.find_one(word=out[-1]) is None
or nouns.count(word=out[-1]) - 1 > iter * shared.enmul or end.count(word=out[-1]) - 1 > iter * shared.enmul
) and iter < shared.maxiter: ) and iter < shared.maxiter:
try: try:
out.append( out.append(