optional height and width

This commit is contained in:
Roy Olav Purser 2021-05-13 16:20:14 +02:00
parent 3c83946b4b
commit 39375d7478
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -190,8 +190,8 @@ class MainHandler(tornado.web.RequestHandler):
self.set_status(404) self.set_status(404)
self.write("HTML template missing.") self.write("HTML template missing.")
def handle_embed(self, provider): def handle_embed(self, provider):
width = self.get_query_argument("maxwidth") width = self.get_query_argument("maxwidth", None)
height = self.get_query_argument("maxheight") height = self.get_query_argument("maxheight", None)
if isinstance(width, str) and isinstance(height, str): if isinstance(width, str) and isinstance(height, str):
pass pass
if isinstance(width, str): if isinstance(width, str):