def insert(my_request: HttpRequest):
    print(my_request)
    book = mModel.build_item(dic={
        "description": "@TestBook",
        "diary_success_rate": 20
    })
    mModel.insert_item(book)
    return sucess_response_from_string("inserted")
Exemple #2
0
def insert(my_request: HttpRequest):
    print(my_request)
    book = mModel.build_item(dic={
        "title": "@TestBook",
        "event_success_rate": 100
    })
    mModel.insert_item(book)
    return sucess_response_from_string("inserted")
Exemple #3
0
def insert(my_request: HttpRequest):
    print(my_request)
    book = mModel.build_item(dic={
        "title": "@TestBook",
        "current_page": 100,
        "page_count": 800
    })
    mModel.insert_item(book)
    return sucess_response_from_string("inserted")
Exemple #4
0
def insert(my_request: HttpRequest):
    print(my_request)
    book = mModel.build_item(
        dic={
            "game_id": 1,
            "champ_type": ChampionType.Default,
            "match_success_rate": 20.0
        })
    mModel.insert_item(book)
    return sucess_response_from_string("inserted")
def insert(my_request: HttpRequest):
    print(my_request)
    book = mModel.build_item(dic={"title": "@TestBook", "budget_amount": 800})
    mModel.insert_item(book)
    return sucess_response_from_string("inserted")