Commit fe3ba85bdc33e51b685a6f1eb023ac245f475f40

Authored by Erickson Silva
1 parent e675c756
Exists in devel

[TranslationServer] Corrige verificação de parametros

Showing 2 changed files with 1 additions and 3 deletions   Show diff stats
@@ -10,8 +10,6 @@ @@ -10,8 +10,6 @@
10 *.jar 10 *.jar
11 *.pyc 11 *.pyc
12 *.srt 12 *.srt
13 -vlibras_user  
14 -tamanho.txt  
15 vlibras 13 vlibras
16 doc/ 14 doc/
17 build/ 15 build/
18 \ No newline at end of file 16 \ No newline at end of file
src/TranslationServer.py
@@ -57,7 +57,7 @@ def logger(): @@ -57,7 +57,7 @@ def logger():
57 def init_mode(args): 57 def init_mode(args):
58 global RUN_MODE 58 global RUN_MODE
59 if args.logfile: logger() 59 if args.logfile: logger()
60 - RUN_MODE = args.mode.upper() 60 + RUN_MODE = args.mode.lower()
61 if RUN_MODE == "dict": 61 if RUN_MODE == "dict":
62 dict_mode() 62 dict_mode()
63 print "# Server started in dictionary mode. Requests will be accepted for translation of texts and download bundles.\n# Endpoints '/translate' and '/<PLATFORM>/<SIGN>' are available." 63 print "# Server started in dictionary mode. Requests will be accepted for translation of texts and download bundles.\n# Endpoints '/translate' and '/<PLATFORM>/<SIGN>' are available."