dockers/API/restV1.py
def due_dates():
    '''
    Returns all the due dates for the calander
    '''
    conn = connect()
    mycursor = conn.cursor()
    mycursor.execute("Select count(*), due_date from kamernet group by due_date")
    raw_data = mycursor.fetchall()

    data = []
    for raw in raw_data:
        # Only 2019 support
        if raw[1].strftime("%Y") != '2019':
            continue
        # Parse data in usable format
        data.append({'date':raw[1].strftime("%d/%m/%Y")[:-4]+'19',
                     'value':raw[0]})

    return jsonify({"data":data}), 200

    Returns all the due dates for the calander
    
Returns all the due dates for the calander
Returns all the due dates for the calander
def due_dates():
    conn = connect()
    mycursor = conn.cursor()
    mycursor.execute("Select count(*), due_date from kamernet group by due_date")
    raw_data = mycursor.fetchall()
    data = []
    for raw in raw_data:
        if raw[1].strftime("%Y") != '2019':
            continue
        data.append({'date':raw[1].strftime("%d/%m/%Y")[:-4]+'19',
                     'value':raw[0]})
    return jsonify({"data":data}), 200
def due_dates ( ) : conn = connect ( ) mycursor = conn . cursor ( ) mycursor . execute ( "Select count(*), due_date from kamernet group by due_date" ) raw_data = mycursor . fetchall ( ) data = [ ] for raw in raw_data : if raw [ 1 ] . strftime ( "%Y" ) != '2019' : continue data . append ( { 'date' : raw [ 1 ] . strftime ( "%d/%m/%Y" ) [ : - 4 ] + '19' , 'value' : raw [ 0 ] } ) return jsonify ( { "data" : data } ) , 200
Returns all the due dates for the calander
Returns all the due dates for the calander
'''
    Returns all the due dates for the calander
    ''' # Only 2019 support # Parse data in usable format