def get_card(card_index, project_id): '''Using the cards index, send back all information pertaining to the card Used primarily for the card details page''' card_refrence = Card() card_refrence.index = card_index card = card_select.card(project_id, card_refrence.proj_number()) if card.type is CardType(0).name: steps = card_select.card_steps(card.id) card.add_steps(steps) elif card.type is CardType(1).name: assigned_cards = card_select.cards_assigned_to_epic(card.epic.id) card.add_assigned_cards(assigned_cards) return response.success(card.serialize())