]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Mise à jour de la méthode de login à NK2015
authorVincent Le Gallic <legallic@crans.org>
Fri, 4 May 2012 16:27:01 +0000 (18:27 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 4 May 2012 16:27:01 +0000 (18:27 +0200)
basile.py

index cb69a9f8b72f4abf3d794f8fa15a75561053ee43..e4426ae1d7ac095cf8873ea6259e6207d18c2984 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -180,7 +180,7 @@ def login_NK(username,password,typ="bdd"):
     sock=connect_NK()
     try:
         # Basile a un compte special user
-        commande='login [%s,%s,"%s"]'%(json.dumps(username),json.dumps(password),typ)
+        commande='login [%s,%s,"%s",[["note"],[],false]]'%(json.dumps(username),json.dumps(password),typ)
         sock.write(commande)
         out=sock.read()
     except Exception as exc: