Skip to content

Commit

Permalink
sort files
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Dec 18, 2024
1 parent 1306810 commit 623f056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/relational/postgres/import-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def process_json_files(json_directory, db_params):
)

# Count JSON files
json_files = [f for f in os.listdir(json_directory) if f.endswith('.json')]
json_files = sorted([f for f in os.listdir(json_directory) if f.endswith('.json')])
if not json_files:
print(f"No JSON files found in '{json_directory}'")
sys.exit(1)
Expand Down

0 comments on commit 623f056

Please sign in to comment.