From 9de721166fc442d6d8b21e0336700b28d51931cf Mon Sep 17 00:00:00 2001
From: Brady James Garvin <bgarvin@cse.unl.edu>
Date: Mon, 25 Mar 2019 11:16:37 -0500
Subject: [PATCH] Fixed transposition error.

---
 database.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/database.py b/database.py
index 7d9f9fa..296b07d 100644
--- a/database.py
+++ b/database.py
@@ -43,12 +43,12 @@ class Person(Persisted):
     # Note that all of these conditions are written in terms of classes, OO fields, and Python operators, not tables,
     # DB fields, or SQL operators.
     reviewers = relationship('Person', uselist=True, secondary='reviewerships',
-                             primaryjoin='Reviewership.reviewer_id == Person.person_id',
-                             secondaryjoin='Reviewership.reviewee_id == Person.person_id',
-                             back_populates='reviewees')
-    reviewees = relationship('Person', uselist=True, secondary='reviewerships',
                              primaryjoin='Reviewership.reviewee_id == Person.person_id',
                              secondaryjoin='Reviewership.reviewer_id == Person.person_id',
+                             back_populates='reviewees')
+    reviewees = relationship('Person', uselist=True, secondary='reviewerships',
+                             primaryjoin='Reviewership.reviewer_id == Person.person_id',
+                             secondaryjoin='Reviewership.reviewee_id == Person.person_id',
                              back_populates='reviewers')
     # If we want to be able to access the join table's pairs themselves, we write a standard one-to-many relationship
     # with extra information.
-- 
GitLab