Skip to content

Commit

Permalink
add json formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alig1493 committed Apr 25, 2024
1 parent f7d0546 commit 01f2a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pycrunch/importing.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def add_schema_metadata(self, site, schema, metadata, filename, fp, mimetype="ap
Parameters:
site (shoji.Catalog): a shoji Catalog object, from which we acquire session and sources url
schema (str): json string containing schema
metadata (str): json string containing metadata
schema (dict): json string containing schema
metadata (dict): json string containing metadata
filename (str): name of file being uploaded
fp (BufferedReader): opened file object
mimetype (str): mimetype of file being uploaded
Expand All @@ -74,8 +74,8 @@ def add_schema_metadata(self, site, schema, metadata, filename, fp, mimetype="ap
"uploaded_file": (filename, fp, mimetype)
},
data={
"schema": schema,
"metadata": metadata,
"schema": json.dumps(schema),
"metadata": json.dumps(metadata),
"crunchlake": "create",
"dataset_id": "None"
}
Expand Down

0 comments on commit 01f2a2d

Please sign in to comment.