Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florestan Biaux
Messenger Statistics
Commits
093243f6
Commit
093243f6
authored
Oct 19, 2021
by
Florestan Biaux
💬
Browse files
Orthogrpahe
parent
2b3acbae
Changes
2
Hide whitespace changes
Inline
Side-by-side
get.py
View file @
093243f6
...
...
@@ -4,7 +4,7 @@ import json
def
getname
(
name
):
# remove whitspaces
# remove whit
e
spaces
conv
=
name
.
replace
(
" "
,
""
)
# lowercase
conv
=
conv
.
lower
()
...
...
main.py
View file @
093243f6
...
...
@@ -29,12 +29,12 @@ if __name__ == "__main__":
if
choice
==
5
:
name
=
'.'
while
name
==
'.'
:
name
=
str
(
input
(
"
\n
Quel est le nom de la conversation à analyser ?
\n
"
))
name
=
str
(
input
(
"
\n
Quel est le nom de la conversation à analyser ?
(sans espaces)
\n
"
))
# get json file
try
:
data
=
get
.
getfile
(
name
)
# data = json
data
=
get
.
getfile
(
name
)
# data = json
except
IndexError
:
os
.
chdir
(
originpath
)
os
.
chdir
(
originpath
)
print
(
"Désolé, Conversation non trouvée."
)
name
=
'.'
if
choice
==
6
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment