def get_latest_submission(self, student, assign_id):
        """Gets the latest submission from the server for use in download_submission"""
        params = {'assignment': assign_id}
        data = self.request('user/{0}/get_submissions'.format(student[0]),
            params)['data']
        if len(data) == 0:
            print("No submissions for {0}".format(student[0]))
            return
        newest_time = None
        newest_subm = None
        for subm in data:
            time = datetime.strptime(subm['server_time'], GAE_DATETIME_FORMAT)
            if newest_time is None or newest_time > time:
                newest_time = time
                newest_subm = subm
        contents = newest_subm['backup']['messages']['file_contents']
        return contents, newest_time, newest_subm['id']
dataset/ETHPy150Open Cal-CS-61A-Staff/ok-client/client/protocols/export.py/ExportProtocol.get_latest_submission/swapped operands of `>`