Skip to content

Commit bc9fea5

Browse files
committed
Fix flake8 errors
1 parent c32035b commit bc9fea5

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

junction/proposals/dashboard.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from junction.base.constants import (
2020
ProposalReviewVote,
2121
ProposalStatus,
22-
ProposalVotesFilter
2322
)
2423
from junction.conferences.models import Conference, ConferenceProposalReviewer
2524

@@ -29,7 +28,6 @@
2928
from .models import (
3029
Proposal,
3130
ProposalComment,
32-
ProposalSection,
3331
ProposalSectionReviewer,
3432
ProposalSectionReviewerVoteValue
3533
)

junction/proposals/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from simple_history.models import HistoricalRecords
1616

1717
# Junction Stuff
18-
from junction.base.constants import ProposalReviewStatus, ProposalStatus, ProposalTargetAudience, ProposalUserVoteRole, \
19-
ProposalReviewVote
18+
from junction.base.constants import ProposalReviewStatus, ProposalStatus, ProposalTargetAudience, \
19+
ProposalUserVoteRole, ProposalReviewVote
2020
from junction.base.models import AuditModel, TimeAuditModel
2121
from junction.conferences.models import Conference, ConferenceProposalReviewer
2222

junction/proposals/utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ def _sort_proposals_for_dashboard(conference, proposals_qs, user, form):
8080
p not in batches]
8181
proposals.append(s_items('Batch 4', batch4))
8282

83-
# proposals = selected + batch1 + batch2 + batch3 + batch4
84-
# unique_proposals = set()
85-
# proposals = [x for x in proposals if not (x in unique_proposals or unique_proposals.add(x))]
86-
# proposals = [s_items('', set(proposals))]
87-
8883
if votes not in (ProposalVotesFilter.SORT_BY_SUM, ProposalVotesFilter.SORT_BY_SELECTION):
89-
print('f')
9084
for section in proposal_sections:
9185
section_proposals = [p for p in proposals_qs if p.proposal_section == section]
9286
proposals.append(s_items(section, section_proposals))

0 commit comments

Comments
 (0)