Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elkinaguas committed Aug 10, 2024
1 parent 4084fc7 commit 0dbdf95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clir/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def back_json_commands():

def migrate_json_to_sqlite():
if os.path.exists(f"{env_path}/commands.json"):
print("Migrating json stored commands to sqlite database...")
back_json_commands()
print("Migrating json stored commands to sqlite database...")

commands = get_commands()

Expand All @@ -36,6 +36,7 @@ def migrate_json_to_sqlite():
print(f"Description: {data['description']}")
print(f"Tag: {data['tag']}")
insert_command_db(command, data['description'], data['tag'])
print("---")

os.remove(f"{env_path}/commands.json")
print("Migration complete")
Expand Down

0 comments on commit 0dbdf95

Please sign in to comment.