Commit c13dce7e authored by Administrator's avatar Administrator

accounts

parent a7b8f8f8
...@@ -53,11 +53,11 @@ def active_user(username, active=True): ...@@ -53,11 +53,11 @@ def active_user(username, active=True):
def mines_account_creation(fichier=None): def mines_account_creation(fichier=None):
if fichier is None: if fichier is None:
fichier = "/home/alexandre/projets/forccast/Tutorat/2014-2015/comptes_gargantext.txt" fichier = "/home/alexandre/projets/forccast/Tutorat/2014-2015/comptes_gargantext.csv"
accounts = open(fichier, "r") accounts = open(fichier, "r")
for line in accounts.readlines(): for line in accounts.readlines():
username, email, password = line.split(',') username, email, password = line.split(',')
#create_user(username, email, password=password, notify=True) create_user(username, email, password=password, notify=True)
delete_user(username) #delete_user(username)
accounts.close() accounts.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment