Skip to content

Commit

Permalink
Merge pull request #37 from JoelEager/self-sign-fix
Browse files Browse the repository at this point in the history
Fixed the self-sign row creation issue
  • Loading branch information
JoelEager authored Sep 3, 2018
2 parents 0e0f292 + 614c127 commit f32edd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packet/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def sync_freshmen(freshmen_csv):
# pylint: disable=cell-var-from-loop
current_fresh_sigs = set(map(lambda fresh_sig: fresh_sig.freshman_username, packet.fresh_signatures))
for csv_freshman in filter(lambda csv_freshman: csv_freshman.rit_username not in current_fresh_sigs and
csv_freshman.onfloor, freshmen_in_csv.values()):
csv_freshman.onfloor and
csv_freshman.rit_username != packet.freshman_username,
freshmen_in_csv.values()):
db.session.add(FreshSignature(packet=packet, freshman=freshmen_in_db[csv_freshman.rit_username]))

db.session.commit()
Expand Down

0 comments on commit f32edd7

Please sign in to comment.