Skip to content

Commit

Permalink
Fix pdc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rup-Narayan-Rajbanshi committed Feb 14, 2025
1 parent bb41871 commit f366d82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apps/etl/extraction/sources/base/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Extraction:
def __init__(self, url: str, headers: str):
def __init__(self, url: str, headers: str = None):
self.headers = headers
self.url = url

Expand Down
1 change: 0 additions & 1 deletion apps/etl/transform/sources/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def load_stac_item_to_queue(cls, transform_items, transform_obj_id):
transform_obj = Transform.objects.filter(id=transform_obj_id).first()
bulk_mgr = BulkCreateManager(chunk_size=1000)
for item in transform_items:
print(item.collection_id)
item_type = ITEM_TYPE_COLLECTION_ID_MAP[item.collection_id]
transformed_item_dict = item.to_dict()
transformed_item_dict["properties"]["monty:etl_id"] = str(uuid.uuid4())
Expand Down

0 comments on commit f366d82

Please sign in to comment.