Browse Source

get single context is now going

Alessia 1 year ago
parent
commit
d97c33e540
2 changed files with 4 additions and 2 deletions
  1. 4 0
      flask_be/engine/handle_request.py
  2. 0 2
      site2/js/ricerca.js

+ 4 - 0
flask_be/engine/handle_request.py

@@ -62,6 +62,10 @@ def handleSingleContext(elem, paramObj, dataConfig):
 def tempDecode(stringa):
     if stringa=='forma':
         return 0
+    elif stringa=='formaLemma':
+        return 0
+    elif stringa=='lemmaForma':
+        return 2
     elif stringa=='soloLemmatizzate':
         return 1
     elif stringa=='lemma':

+ 0 - 2
site2/js/ricerca.js

@@ -691,8 +691,6 @@ function goToSingleContext(num, parole, periodi, brani) {
     params: params
   }
 
-  console.log(queryGSC);
-
   getData('/get_single_context', queryGSC)
     // After request finishes, process response data
     .done(response => processSingleContext(response))