Skip to content

Commit

Permalink
Replaced double quotes within double quotes with single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant P Iyer committed Sep 5, 2024
1 parent ce971cd commit 92556d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsi/backends/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ def yamlToSqlite(self, filename, db_name, deleteSql=True):
for key, val in table['columns'].items():
createUnitStmt+= f"{key} VARCHAR, "
if data_types[type(val)] == "VARCHAR" and self.check_type(val[:val.find(" ")]) in [" INT", " FLOAT"]:
createStmt += f"{key}{self.check_type(val[:val.find(" ")])}, "
insertUnitStmt+= f"'{val[val.find(" ")+1:]}', "
createStmt += f"{key}{self.check_type(val[:val.find(' ')])}, "
insertUnitStmt+= f"'{val[val.find(' ')+1:]}', "
else:
createStmt += f"{key} {data_types[type(val)]}, "
insertUnitStmt+= "NULL, "
Expand All @@ -589,7 +589,7 @@ def yamlToSqlite(self, filename, db_name, deleteSql=True):
insertStmt = f"INSERT INTO {tableName} VALUES( "
for val in table['columns'].values():
if data_types[type(val)] == "VARCHAR" and self.check_type(val[:val.find(" ")]) in [" INT", " FLOAT"]:
insertStmt+= f"{val[:val.find(" ")]}, "
insertStmt+= f"{val[:val.find(' ')]}, "
elif data_types[type(val)] == "VARCHAR":
insertStmt+= f"'{val}', "
else:
Expand Down

0 comments on commit 92556d9

Please sign in to comment.