From 33c776de8695324c7ca47f42cf2e9fa2b0212e3f Mon Sep 17 00:00:00 2001 From: GARNIER Laurent <laurent.garnier@irisa.fr> Date: Tue, 19 Oct 2021 15:20:09 +0000 Subject: [PATCH] Update __init__.py --- allgo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allgo/__init__.py b/allgo/__init__.py index 823cfe7..cfe51bb 100644 --- a/allgo/__init__.py +++ b/allgo/__init__.py @@ -47,7 +47,7 @@ class Init: string allgo login page link or already initialized message """ - if None is self.API_token + if API_token is None API_token = get_random_string(length=32) msg = "allgo_token = " + API_token msg += "<p>Sign in with your existing <a href=\"https://allgo18.inria.fr/accounts/login/?token=" + API_token+ "\">A||GO account </a></p>" -- GitLab