Skip to content

Commit

Permalink
Merge pull request #1510 from jefer94/feat/works-api
Browse files Browse the repository at this point in the history
Feat/works api
  • Loading branch information
jefer94 authored Dec 2, 2024
2 parents 1f5dfba + 79c19fd commit 5b1b2c3
Show file tree
Hide file tree
Showing 45 changed files with 1,851 additions and 2,445 deletions.
3,338 changes: 1,614 additions & 1,724 deletions Pipfile.lock

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions breathecode/admissions/tests/permissions/contexts/tests_academy.py

This file was deleted.

2 changes: 1 addition & 1 deletion breathecode/admissions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ def get(self, request, syllabus_id, version, academy_id):
week_number = math.ceil(cumulative_days / class_days_per_week)
if "technologies" not in day:
day["technologies"] = []

if lang == "es":
writer.writerow(
[
Expand Down
4 changes: 1 addition & 3 deletions breathecode/assessment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,13 @@ def save(self, *args, **kwargs):
self.token = binascii.hexlify(os.urandom(20)).decode()

_instance = super().save(*args, **kwargs)

# Answer is being closed
if is_creating or self.status != self._old_status:
signals.userassessment_status_updated.send_robust(instance=self, sender=self.__class__)

return _instance



def get_score(self):

total_score = 0
Expand Down
1 change: 1 addition & 0 deletions breathecode/assessment/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class HookUserAssessmentSerializer(serpy.Serializer):
created_at = serpy.Field()

summary = serpy.MethodField()

def get_summary(self, obj):
total_score, last_one = obj.get_score()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def fill_whitelist(self):
asset.readme_url,
asset.intro_video_url,
asset.solution_video_url,
asset.template_url,
]
for url in [x for x in options if x]:
match = self.github_url_pattern.search(url)
Expand Down
Empty file.
Empty file.
50 changes: 0 additions & 50 deletions breathecode/authenticate/tests/permissions/contexts/tests_user.py

This file was deleted.

1 change: 1 addition & 0 deletions breathecode/commons/tests/signals/tests_update_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def test_model_cache__many_to_one(cache_cls, value):
CohortCache,
set(
[
marketing_models.Course,
payments_models.CohortSet,
payments_models.PlanFinancing,
payments_models.Subscription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def test_update_or_create_event__with_academy(self):
"asset_slug": None,
"free_for_all": False,
"uuid": uuid,
"is_public": True,
}

self.assertEqual(self.bc.database.list_of("events.Event"), [kwargs])
Expand Down Expand Up @@ -292,6 +293,7 @@ def test_update_or_create_event__with_event(self):
"asset_slug": None,
"free_for_all": False,
"uuid": uuid,
"is_public": True,
}

self.assertEqual(self.bc.database.list_of("events.Event"), [kwargs])
Empty file.
Empty file.
51 changes: 0 additions & 51 deletions breathecode/events/tests/permissions/contexts/tests_event.py

This file was deleted.

48 changes: 0 additions & 48 deletions breathecode/events/tests/permissions/contexts/tests_event_type.py

This file was deleted.

Empty file.
Empty file.

This file was deleted.

Loading

0 comments on commit 5b1b2c3

Please sign in to comment.