Omnibus commited on
Commit
36efd7a
·
verified ·
1 Parent(s): 2138435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -338,15 +338,15 @@ def load_html(inp,title,user_name="None"):
338
  #ht+=f"""<div class="bhead"><div><h1>$btitle</h1></div><div>$user_name</div></div>"""
339
  ht+=f"""<pre class="bpost"><div class="bhead"><h2>$title</h2><br><h5>$user_name</h5></div>{blog}</pre>"""
340
  if comm:
341
- ht+=f"""<pre class="resp1"><div class="bhead"><div>{comm}</pre>"""
342
  if repl:
343
- ht+=f"""<pre class="resp2"><div class="bhead"><div>{repl}</pre>"""
344
  ht+=f"""</div>"""
345
  with open('index.html','r') as h:
346
  html=h.read()
347
  html = html.replace("$body",f"{ht}")
348
  #html = html.replace("$title",f"{title}")
349
- html = html.replace("$btitle",f"{title}")
350
  html = html.replace("$user_name",f"{user_name}")
351
  h.close()
352
  return html
 
338
  #ht+=f"""<div class="bhead"><div><h1>$btitle</h1></div><div>$user_name</div></div>"""
339
  ht+=f"""<pre class="bpost"><div class="bhead"><h2>$title</h2><br><h5>$user_name</h5></div>{blog}</pre>"""
340
  if comm:
341
+ ht+=f"""<pre class="resp1"><div class="bhead"></div>{comm}</pre>"""
342
  if repl:
343
+ ht+=f"""<pre class="resp2"><div class="bhead"></div>{repl}</pre>"""
344
  ht+=f"""</div>"""
345
  with open('index.html','r') as h:
346
  html=h.read()
347
  html = html.replace("$body",f"{ht}")
348
  #html = html.replace("$title",f"{title}")
349
+ html = html.replace("$title",f"{title}")
350
  html = html.replace("$user_name",f"{user_name}")
351
  h.close()
352
  return html