Skip to content

Commit

Permalink
showing campaign tech id
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullai-t committed Dec 10, 2023
1 parent b7c00c0 commit 164eea4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/apps__campaigns/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def get_campaign_details(campaign_id, for_campaign=False):
techs = CampaignTechnology.objects.filter(campaign__id=campaign_id, is_deleted=False)
ser_techs = serialize_all(techs, full=True)
prepared = [{**get_campaign_technology_details(x.get("id"), for_campaign)} for x in ser_techs]
prepared = [{"campaign_technology_id":x.get("id"),**get_campaign_technology_details(x.get("id"), for_campaign)} for x in ser_techs]
managers = CampaignManager.objects.filter(campaign_id=campaign_id, is_deleted=False)
partners = CampaignPartner.objects.filter(campaign_id=campaign_id, is_deleted=False)
communities = CampaignCommunity.objects.filter(campaign_id=campaign_id, is_deleted=False)
Expand Down Expand Up @@ -42,7 +42,6 @@ def get_campaign_technology_details(campaign_technology_id, campaign_home, email
"events": serialize_all(events[:3], full=True),
"coaches": tech_data.get("coaches", [])[:3],
**campaign_tech.technology.simple_json()

}
views = CampaignTechnologyView.objects.filter(campaign_technology__id=campaign_technology_id, is_deleted=False)
likes = CampaignTechnologyLike.objects.filter(campaign_technology__id=campaign_technology_id, is_deleted=False)
Expand Down

0 comments on commit 164eea4

Please sign in to comment.