Skip to content

Commit a8c7d9b

Browse files
author
patched.codes[bot]
committed
Patched: "/tmp/tmp7rhy90_n/slips_files/core/database/sqlite_db/database.py"
1 parent db9b392 commit a8c7d9b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

slips_files/core/database/sqlite_db/database.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,9 @@ def export_labeled_flows(self, output_dir, format):
168168
}
169169
json.dump(json_labeled_flow, json_file)
170170
json_file.write('\n')
171-
172171
def get_columns(self, table) -> list:
173172
"""returns a list with column names in the given table"""
174-
self.execute(f"PRAGMA table_info({table})")
173+
self.execute("PRAGMA table_info(?)", (table,))
175174
columns = self.fetchall()
176175
return [column[1] for column in columns]
177176

0 commit comments

Comments
 (0)