@bottle.post('/api/v3/report/new')
def post_report_new(database: Database):
    'Add a new report.'
    report_uuid = uuid()
    user = sessions.user(database)
    report = dict(report_uuid=report_uuid, title='New report', subjects={}, delta=dict(uuids=[report_uuid], email=user['email'], description=f"{user['user']} created a new report."))
    result = insert_new_report(database, report)
    result['new_report_uuid'] = report_uuid
    return result
Add a new report.
@bottle.post('/api/v3/report/new')
def post_report_new(database: Database):
    
    report_uuid = uuid()
    user = sessions.user(database)
    report = dict(report_uuid=report_uuid, title='New report', subjects={}, delta=dict(uuids=[report_uuid], email=user['email'], description=f"{user['user']} created a new report."))
    result = insert_new_report(database, report)
    result['new_report_uuid'] = report_uuid
    return result