[FIX]Copy ts lines - python function to query

Merged Gastón Bertolani requested to merge 12.0-python-to-query into 12.0-stage

Merge request reports