gbmodel/model_sqlalchemy.py
def insert_report(self, sess_id, time, reviewer, tid, reviewee, tech,
                      ethic, com, coop, init, focus, cont, lead, org, dlg,
                      points, strn, wkn, traits, learned, proud, is_final, late):
        """
        Stages a report to be inserted into the database -- This does NOT commit the add!
        Inputs: Arguments for each individual field of the report
        Outputs: true if adding was successful, false if not
        """
        try:
            # Build Report object from method input
            new_report = reports(session_id=sess_id,
                                 time=time,
                                 reviewer=reviewer,
                                 tid=tid,
                                 reviewee=reviewee,
                                 tech_mastery=tech,
                                 work_ethic=ethic,
                                 communication=com,
                                 cooperation=coop,
                                 initiative=init,
                                 team_focus=focus,
                                 contribution=cont,
                                 leadership=lead,
                                 organization=org,
                                 delegation=dlg,
                                 points=points,
                                 strengths=strn,
                                 weaknesses=wkn,
                                 traits_to_work_on=traits,
                                 what_you_learned=learned,
                                 proud_of_accomplishment=proud,
                                 is_final=is_final,
                                 is_late=late)
            # add the report and return true for success
            db.session.add(new_report)
            print('Adding Report to Session')
            return True
        except exc.SQLAlchemyError:
            # if error, return false
            handle_exception()
            return False

        Stages a report to be inserted into the database -- This does NOT commit the add!
        Inputs: Arguments for each individual field of the report
        Outputs: true if adding was successful, false if not
        
Stages a report to be inserted into the database -- This does NOT commit the add.
Inputs: Arguments for each individual field of the report
Outputs: true if adding was successful, false if not
Stages a report to be inserted into the database -- This does NOT commit the add . Inputs : Arguments for each individual field of the report Outputs : true if adding was successful false if not
def insert_report(self, sess_id, time, reviewer, tid, reviewee, tech,
                      ethic, com, coop, init, focus, cont, lead, org, dlg,
                      points, strn, wkn, traits, learned, proud, is_final, late):
        try:
            new_report = reports(session_id=sess_id,
                                 time=time,
                                 reviewer=reviewer,
                                 tid=tid,
                                 reviewee=reviewee,
                                 tech_mastery=tech,
                                 work_ethic=ethic,
                                 communication=com,
                                 cooperation=coop,
                                 initiative=init,
                                 team_focus=focus,
                                 contribution=cont,
                                 leadership=lead,
                                 organization=org,
                                 delegation=dlg,
                                 points=points,
                                 strengths=strn,
                                 weaknesses=wkn,
                                 traits_to_work_on=traits,
                                 what_you_learned=learned,
                                 proud_of_accomplishment=proud,
                                 is_final=is_final,
                                 is_late=late)
            db.session.add(new_report)
            print('Adding Report to Session')
            return True
        except exc.SQLAlchemyError:
            handle_exception()
            return False
def insert_report ( self , sess_id , time , reviewer , tid , reviewee , tech , ethic , com , coop , init , focus , cont , lead , org , dlg , points , strn , wkn , traits , learned , proud , is_final , late ) : try : new_report = reports ( session_id = sess_id , time = time , reviewer = reviewer , tid = tid , reviewee = reviewee , tech_mastery = tech , work_ethic = ethic , communication = com , cooperation = coop , initiative = init , team_focus = focus , contribution = cont , leadership = lead , organization = org , delegation = dlg , points = points , strengths = strn , weaknesses = wkn , traits_to_work_on = traits , what_you_learned = learned , proud_of_accomplishment = proud , is_final = is_final , is_late = late ) db . session . add ( new_report ) print ( 'Adding Report to Session' ) return True except exc . SQLAlchemyError : handle_exception ( ) return False
Stages a report to be inserted into the database -- This does NOT commit the add!
Stages a report to be inserted into the database -- This does NOT commit the add!
"""
        Stages a report to be inserted into the database -- This does NOT commit the add!
        Inputs: Arguments for each individual field of the report
        Outputs: true if adding was successful, false if not
        """ # Build Report object from method input # add the report and return true for success # if error, return false
self
sess_id
time
reviewer
tid
reviewee
tech
ethic
com
coop
init
focus
cont
lead
org
dlg
points
strn
wkn
traits
learned
proud
is_final
late