Omnibus commited on
Commit
5f4262d
1 Parent(s): e9b35b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -341,6 +341,7 @@ def create_valid_filename(invalid_filename: str) -> str:
341
 
342
  def load_html(inp,conv):
343
  ht=""
 
344
  #for i,ea in enumerate(inp):
345
 
346
  #blog,comm,repl=ea
@@ -350,7 +351,7 @@ def load_html(inp,conv):
350
  ht+=f"""<pre class="bpost"><div class="bhead"><h2>{conv['title']}</h2><br><h5>{conv['user']}</h5></div>{conv['output']}</pre>"""
351
  for com in conv['comment_list']:
352
  ht+=f"""<pre class="resp1"><div class="bhead"></div>{com}</pre>"""
353
- for repl in conv['comment_list']['reply_list']:
354
  ht+=f"""<pre class="resp2"><div class="bhead"></div>{repl}</pre>"""
355
  ht+=f"""</div>"""
356
  '''
 
341
 
342
  def load_html(inp,conv):
343
  ht=""
344
+ comm=0
345
  #for i,ea in enumerate(inp):
346
 
347
  #blog,comm,repl=ea
 
351
  ht+=f"""<pre class="bpost"><div class="bhead"><h2>{conv['title']}</h2><br><h5>{conv['user']}</h5></div>{conv['output']}</pre>"""
352
  for com in conv['comment_list']:
353
  ht+=f"""<pre class="resp1"><div class="bhead"></div>{com}</pre>"""
354
+ for repl in conv['comment_list'][comm]['reply_list']:
355
  ht+=f"""<pre class="resp2"><div class="bhead"></div>{repl}</pre>"""
356
  ht+=f"""</div>"""
357
  '''