fixed the sentence duplication bug. todo: functors

This commit is contained in:
voje
2019-04-11 07:49:31 +02:00
parent 4a9a9cca12
commit d135cc7f2b
3 changed files with 10 additions and 5 deletions

View File

@@ -302,6 +302,9 @@ def api_get_functor_frames():
for ent in cur:
frames += frames_from_db_entry(ent) # pre-process this step for prod TODO
for f in frames:
print(f.to_json())
# raw_frames = vallex.functors_index[functor] # TODO
ret_frames = RF(frames, valdb[SENSEMAP_COLL])
return prepare_frames(ret_frames)