fix entries_with_content being forgotten

This commit is contained in:
Tomáš Mládek 2019-10-23 16:08:02 +02:00
parent 7762ffd80a
commit f55571168a

View file

@ -132,7 +132,7 @@ class DudleBot:
if len(entries_with_content) == 0:
entries = [PlanEntry(name="???", responses=[])]
else:
entries = plan.entries.values()
entries = entries_with_content
for entry in entries:
responses = [entry.responses[i] if i < len(entry.responses) else PlanResponse.UNKNOWN