Skip to content

Commit 645b7b0

Browse files
committed
done
1 parent 86bcec6 commit 645b7b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

website/management/commands/fetch_gsoc_orgs.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ def handle(self, *args, **kwargs):
3939

4040
logger.info(f"{COLOR_GREEN}Finished fetching organizations!{COLOR_RESET}")
4141

42-
def process_organization(self,org_data):
42+
def process_organization(self, org_data):
4343
data = org_data
4444
slug = slugify(data["slug"])
45-
45+
4646
try:
4747
org, created = Organization.objects.update_or_create(
4848
slug=slug,
@@ -100,12 +100,12 @@ def assign_tags(self, org, tags):
100100
tag_slug = slugify(tag_name)
101101
tag, _ = Tag.objects.get_or_create(slug=tag_slug, defaults={"name": tag_name})
102102
org.tags.add(tag)
103-
def assign_contacts(self, org, contacts):
104103

104+
def assign_contacts(self, org, contacts):
105105
for contact in contacts:
106106
if contact["name"].lower() == "email":
107107
org.email = contact["value"]
108108
elif contact["name"].lower() == "chat":
109109
org.twitter = contact["value"] # Adjust this if needed
110-
110+
111111
org.save()

0 commit comments

Comments
 (0)