Skip to content

Commit

Permalink
Merge pull request #27 from HumanDynamics/bug/meeting-reupload
Browse files Browse the repository at this point in the history
returned meetings include uuid
  • Loading branch information
OrenLederman committed Oct 25, 2017
2 parents 37a428c + f3e2f27 commit 4988cd1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions openbadge-server/openbadge/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,15 @@ def get_object(self, last_update = None):
}

def get_completed_meetings(self):
# TODO: returns all meetings, not just completed meetings.
# need to change name to match functionality but don't want to break anything...
return {
meeting.key: {
"last_log_timestamp": meeting.last_update_timestamp,
"last_log_serial": meeting.last_update_index,
"is_complete": meeting.is_complete
} for meeting in self.meetings.all() if meeting.is_complete
"is_complete": meeting.is_complete,
"uuid": meeting.uuid
} for meeting in self.meetings.all()
}

def __unicode__(self):
Expand Down

0 comments on commit 4988cd1

Please sign in to comment.