Try and try again

This commit is contained in:
Micke Nordin 2024-01-16 17:09:03 +01:00
parent 31db4ba377
commit f6eaea5e12
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -223,7 +223,8 @@ hub:
@authenticated
def get(self):
app_log.debug("DEBUG: In auth get")
app_log.error("DEBUG: In auth get")
print("DEBUG: In auth get")
user_model = self.get_current_user()
user_model = {'helloooooo': 'hej'}
self.set_header('content-type', 'application/json')
@ -232,13 +233,15 @@ hub:
class PingHandler(RequestHandler):
def get(self):
app_log.debug("DEBUG: In get")
app_log.error("DEBUG: In get")
print("DEBUG: In ping get")
self.set_header('content-type', 'application/json')
self.write(json.dumps({'ping': 1}))
def main():
app_log.debug("DEBUG: In main")
app_log.error("DEBUG: In main")
print("DEBUG: In main")
tornado.options.parse_command_line()
app = Application([
(os.environ['JUPYTERHUB_SERVICE_PREFIX'] + 'tokens', RefreshHandler),