Skip to content

Commit fa179db

Browse files
committed
done
1 parent b929565 commit fa179db

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

website/management/commands/fetch_gsoc_orgs.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ def process_organization(self, org_data):
4545

4646
try:
4747
org, created = Organization.objects.update_or_create(
48-
slug=slug,
49-
defaults={
50-
"name": data["name"],
51-
"description": data.get("description", "")[:500],
52-
"url": data.get("website_url"),
53-
"tagline": data.get("tagline", ""),
54-
"license": data.get("license", ""),
55-
"categories": data.get("categories", []),
56-
"contributor_guidance_url": data.get("contributor_guidance_url", ""),
57-
"tech_tags": data.get("tech_tags", []),
58-
"topic_tags": data.get("topic_tags", []),
59-
"source_code": data.get("website_url"),
60-
"is_active": True,
61-
},
62-
)
48+
slug=slug,
49+
defaults={
50+
"name": data["name"],
51+
"description": data.get("description", "")[:500],
52+
"url": data.get("website_url"),
53+
"tagline": data.get("tagline", ""),
54+
"license": data.get("license", ""),
55+
"categories": data.get("categories") or None, # ✅ Use None instead of []
56+
"contributor_guidance_url": data.get("contributor_guidance_url", ""),
57+
"tech_tags": data.get("tech_tags") or None, # ✅ Use None instead of []
58+
"topic_tags": data.get("topic_tags") or None, # ✅ Use None instead of []
59+
"source_code": data.get("website_url"),
60+
"is_active": True,
61+
},
62+
)
6363

6464
# Handle Logo
6565
if data.get("logo_url"):

0 commit comments

Comments
 (0)