Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LGD curators list #64

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -271,25 +271,25 @@ def get_curators(self, id):
# Check LGD record history
history_records = lgd_obj.history.all().values('history_user__first_name', 'history_user__last_name')
# Check LGD cross cutting modifier history
history_records_ccm = LGDCrossCuttingModifier.history.filter(lgd=lgd_obj).values(
history_records_ccm = LGDCrossCuttingModifier.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')
# Check LGD panel history
history_records_lgdpanel = LGDPanel.history.filter(lgd=lgd_obj).values(
history_records_lgdpanel = LGDPanel.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')
# Check LGD phenotype history
history_records_lgdpheno = LGDPhenotype.history.filter(lgd=lgd_obj).values(
history_records_lgdpheno = LGDPhenotype.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')
# Check LGD publication history
history_records_lgdpublication = LGDPublication.history.filter(lgd=lgd_obj).values(
history_records_lgdpublication = LGDPublication.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')
# Check LGD variation GenCC consequence history
history_records_lgdvarcons = LGDVariantGenccConsequence.history.filter(lgd=lgd_obj).values(
history_records_lgdvarcons = LGDVariantGenccConsequence.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')
# Check LGD variation type history
history_records_lgdvartype = LGDVariantType.history.filter(lgd=lgd_obj).values(
history_records_lgdvartype = LGDVariantType.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')
# Check LGD variation type description history
history_records_lgdvartype_desc = LGDVariantTypeDescription.history.filter(lgd=lgd_obj).values(
history_records_lgdvartype_desc = LGDVariantTypeDescription.history.filter(id=lgd_obj.id).values(
'history_user__first_name', 'history_user__last_name')

for record in itertools.chain(history_records, history_records_ccm, history_records_lgdpanel,
Expand Down