Skip to content

Commit 33faadf

Browse files
keerthanakh89Keerthanaandrewtavis
authored
fix: remove unneeded autocomplete_lexicon from project (#667) (#675)
* fix: remove unneeded autocomplete_lexicon from project (#667) * Fix formatting --------- Co-authored-by: Keerthana <your-email@gmail.com> Co-authored-by: Andrew Tavis McAllister <andrew.t.mcallister@gmail.com>
1 parent 9d54ea3 commit 33faadf

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/scribe_data/load/data_to_sqlite.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ def data_to_sqlite(
265265
dt for dt in language_data_type_dict[lang] if dt != "translations"
266266
]
267267

268-
269-
270268
languages_capitalized = [lang.capitalize() for lang in languages]
271269
print(
272270
f"Creating/Updating SQLite databases for the following languages: {', '.join(languages_capitalized)}"
@@ -286,7 +284,6 @@ def data_to_sqlite(
286284
/ f"{get_language_iso(lang).upper()}LanguageData.sqlite"
287285
)
288286
if db_file.exists():
289-
print("ovarger", overwrite)
290287
if not overwrite:
291288
answer = questionary.confirm(
292289
f"SQLite file {db_file} already exists.\nDo you want to overwrite it?"
@@ -304,8 +301,6 @@ def data_to_sqlite(
304301
print(f"Database for {lang} {maybe_over}written and connection made.")
305302

306303
for dt in language_data_type_dict[lang]:
307-
308-
309304
print(f"Creating/Updating {lang} {dt} table...")
310305
json_file_path = Path(input_file) / lang / f"{dt}.json"
311306

@@ -368,8 +363,6 @@ def data_to_sqlite(
368363

369364
connection.commit()
370365

371-
372-
373366
connection.close()
374367
print(f"{lang.capitalize()} database processing completed.")
375368

0 commit comments

Comments
 (0)