Beispiel #1
0
def checkbid():
    data = {
        'tender_id': 5,
        'vender_id': 6,
        'date': "c",
        'cost': 10,
        'project_id': 10
    }
    Database.addBid(data)
    return "asda"
Beispiel #2
0
def makeBid():
    data = request.get_json()
    data['vender'] = current_user.username
    if Database.addBid(data):
        return "Data added successfully"
    return "error", 404