BinaryONe commited on
Commit
3f54f83
·
1 Parent(s): 2975db2

Miseleneous Fixes - Update on HTMLs

Browse files
FileStream/server/APP/render_template.py CHANGED
@@ -10,7 +10,7 @@ db = Database(Telegram.DATABASE_URL, Telegram.SESSION_NAME)
10
 
11
 
12
  # Define the path to the static folder
13
- static_folder = os.path.join(os.path.dirname(__file__), '..', '..', 'template')
14
 
15
 
16
  async def render_page(db_id):
 
10
 
11
 
12
  # Define the path to the static folder
13
+ static_folder = os.path.join(os.path.dirname(__file__), '..', 'template')
14
 
15
 
16
  async def render_page(db_id):
FileStream/server/APP/routes_app.py CHANGED
@@ -21,7 +21,7 @@ async def stream_handler(request: web.Request):
21
  return web.Response(text=await render_page(path), content_type='text/html')
22
  except InvalidHash as e:
23
  raise web.HTTPForbidden(text=e.message)
24
- except FIleNotFound as e:
25
  raise web.HTTPNotFound(text=e.message)
26
  except (AttributeError, BadStatusLine, ConnectionResetError):
27
  pass
 
21
  return web.Response(text=await render_page(path), content_type='text/html')
22
  except InvalidHash as e:
23
  raise web.HTTPForbidden(text=e.message)
24
+ except FileNotFound as e:
25
  raise web.HTTPNotFound(text=e.message)
26
  except (AttributeError, BadStatusLine, ConnectionResetError):
27
  pass