Skip to content

Commit

Permalink
campaign tech info fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullai-t committed Dec 11, 2023
1 parent 6f23571 commit 13c5da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/handlers/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def create_campaign_config(self, request):
self.validator.expect("campaign_id", str, is_required=True)
self.validator.expect("advert", str, is_required=False)
self.validator.expect("theme", str, is_required=False)

args, err = self.validator.verify(args, strict=True)
if err:
return err
Expand All @@ -794,7 +794,7 @@ def update_campaign_config(self, request):
context: Context = request.context
args: dict = context.args

self.validator.expect("campaign_id", str, is_required=True)
self.validator.expect("id", str, is_required=True)
self.validator.expect("advert", str, is_required=False)
self.validator.expect("theme", str, is_required=False)
args, err = self.validator.verify(args)
Expand Down
2 changes: 1 addition & 1 deletion src/apps__campaigns/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_campaign_technology_details(campaign_technology_id, campaign_home, email
comments = Comment.objects.filter(campaign_technology__id=campaign_technology_id, is_deleted=False)

return {
**get_technology_details(campaign_tech.campaign.id),
**get_technology_details(campaign_tech.technology.id),
"views":views.count(),
"has_liked":liked,
"likes":likes.count(),
Expand Down

0 comments on commit 13c5da6

Please sign in to comment.