def rosreestr(fields):
result = ''
for row in conn.execute(self.query):
rec = dict(zip(row.keys(), row))
for i in range(len(fields)):
result += fields[i]+';'
result.append(rec)
response = Response()
response.content_type = 'text/plain'
response.content_disposition = 'attachment; filename={}'.format('rosreestr.txt')
response.text = result
return result