Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo committed Sep 17, 2024
1 parent f40e3df commit 3edf92e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ingestify/application/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ def load_file(

if file_resource.json_content is not None:
# Empty dictionary is allowed
return DraftFile.from_input(
file = DraftFile.from_input(
file_=json.dumps(file_resource.json_content, indent=4),
data_serialization_format="json",
data_feed_key=file_resource.data_feed_key,
data_spec_version=file_resource.data_spec_version,
modified_at=file_resource.last_modified,
)
if current_file and current_file.tag == file.tag:
# Nothing changed
return None
return file
elif file_resource.url:
http_options = {}
if file_resource.http_options:
Expand Down

0 comments on commit 3edf92e

Please sign in to comment.