Skip to content

Commit

Permalink
Favourited things may be withdrawn and unscheduled
Browse files Browse the repository at this point in the history
We should not be looking at anything that isn't accepted for clashes
  • Loading branch information
Jonty committed May 21, 2024
1 parent dfe63a2 commit bdb5958
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions apps/cfp_review/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,10 @@ def export(format: str):
"notice_required",
"tags",
"favourite_count",

"published_names",
"published_pronouns",
"published_title",
"published_description",

"arrival_period",
"departure_period",
"telephone_number",
Expand Down Expand Up @@ -1249,15 +1247,16 @@ def clashfinder():
offset += 1
prop1 = Proposal.query.get(id1)
prop2 = Proposal.query.get(id2)
if prop1.overlaps_with(prop2):
clashes.append(
{
"proposal_1": prop1,
"proposal_2": prop2,
"favourites": count,
"number": offset,
}
)
if prop1.is_accepted and prop2.is_accepted:
if prop1.overlaps_with(prop2):
clashes.append(
{
"proposal_1": prop1,
"proposal_2": prop2,
"favourites": count,
"number": offset,
}
)

return render_template("cfp_review/clashfinder.html", clashes=clashes)

Expand Down

0 comments on commit bdb5958

Please sign in to comment.