Commit a1a0ecb6 authored by Florestan Biaux's avatar Florestan Biaux 💬
Browse files

creation usertab() pour obtenir un tableau avec les participants de la conversation

parent 4a185c3e
......@@ -17,4 +17,4 @@ if __name__ == "__main__":
if choice == 1:
print(data)
if choice == 2:
print(users.userlist(data))
print(users.usertab(data))
......@@ -6,8 +6,15 @@ def userlist(data):
userlist = userlist.replace("name", "")
userlist = userlist.replace("[", "")
userlist = userlist.replace("]", "")
userlist = userlist.replace("'", '"')
userlist = userlist.replace("'", "")
userlist = userlist.replace('""', "")
userlist = userlist.replace('{:', "")
userlist = userlist.replace('}', "")
return decode.string_decode(userlist)
def usertab(data):
usertab = userlist(data).split(',')
for i in range(len(usertab)):
usertab[i] = str(usertab[i]).strip()
return usertab
\ No newline at end of file
Supports Markdown
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