Browse Source

return dict, not dataframe

kora 1 year ago
parent
commit
f54d2538f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flask_be/engine/basic_queries.py

+ 1 - 1
flask_be/engine/basic_queries.py

@@ -162,7 +162,7 @@ class basicQueries:
         contexts = self.findcontexts (textlist)
         bibliocontexts = self.findbib (contexts)
         highlights = self.highlight(bibliocontexts)
-        return highlights
+        return highlights.to_dict(orient='records')
     
     #%% funzione reperimento e raffinamento contesti singoli
     def singlecontexts(self, textlist, index, parole, periodi, brani):