mirror of https://gitlab.com/bashrc2/epicyon
Change function name
parent
9f3231e5dd
commit
4d91f5f184
|
@ -13802,7 +13802,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._404()
|
self._404()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _show_q_rcode(self, calling_domain: str, path: str,
|
def _show_qrcode(self, calling_domain: str, path: str,
|
||||||
base_dir: str, domain: str, port: int,
|
base_dir: str, domain: str, port: int,
|
||||||
getreq_start_time) -> bool:
|
getreq_start_time) -> bool:
|
||||||
"""Shows a QR code for an account
|
"""Shows a QR code for an account
|
||||||
|
@ -13825,7 +13825,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
media_binary = av_file.read()
|
media_binary = av_file.read()
|
||||||
break
|
break
|
||||||
except BaseException as ex:
|
except BaseException as ex:
|
||||||
print('EX: _show_q_rcode ' + str(tries) + ' ' + str(ex))
|
print('EX: _show_qrcode ' + str(tries) + ' ' + str(ex))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
tries += 1
|
tries += 1
|
||||||
if media_binary:
|
if media_binary:
|
||||||
|
@ -13837,7 +13837,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._write(media_binary)
|
self._write(media_binary)
|
||||||
fitness_performance(getreq_start_time,
|
fitness_performance(getreq_start_time,
|
||||||
self.server.fitness,
|
self.server.fitness,
|
||||||
'_GET', '_show_q_rcode',
|
'_GET', '_show_qrcode',
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
return True
|
return True
|
||||||
self._404()
|
self._404()
|
||||||
|
@ -16143,7 +16143,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# QR code for account handle
|
# QR code for account handle
|
||||||
if users_in_path and \
|
if users_in_path and \
|
||||||
self.path.endswith('/qrcode.png'):
|
self.path.endswith('/qrcode.png'):
|
||||||
if self._show_q_rcode(calling_domain, self.path,
|
if self._show_qrcode(calling_domain, self.path,
|
||||||
self.server.base_dir,
|
self.server.base_dir,
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
self.server.port,
|
self.server.port,
|
||||||
|
|
Loading…
Reference in New Issue