Commit 093243f6 authored by Florestan Biaux's avatar Florestan Biaux 💬
Browse files

Orthogrpahe

parent 2b3acbae
...@@ -4,7 +4,7 @@ import json ...@@ -4,7 +4,7 @@ import json
def getname(name): def getname(name):
# remove whitspaces # remove whitespaces
conv = name.replace(" ", "") conv = name.replace(" ", "")
# lowercase # lowercase
conv = conv.lower() conv = conv.lower()
......
...@@ -29,12 +29,12 @@ if __name__ == "__main__": ...@@ -29,12 +29,12 @@ if __name__ == "__main__":
if choice == 5: if choice == 5:
name = '.' name = '.'
while name == '.': while name == '.':
name = str(input( "\nQuel est le nom de la conversation à analyser ? \n")) name = str(input( "\nQuel est le nom de la conversation à analyser ? (sans espaces)\n"))
# get json file # get json file
try: try:
data = get.getfile( name ) # data = json data = get.getfile(name) # data = json
except IndexError: except IndexError:
os.chdir( originpath ) os.chdir(originpath)
print( "Désolé, Conversation non trouvée." ) print( "Désolé, Conversation non trouvée." )
name = '.' name = '.'
if choice == 6: if choice == 6:
......
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