Fixed how polymorphism affects listing.
This commit is contained in:
parent
1cf76edf56
commit
4ebc82c08b
3 changed files with 20 additions and 6 deletions
|
|
@ -27,7 +27,7 @@ bootstrap_world(session)
|
|||
|
||||
app = Flask(__name__)
|
||||
|
||||
dbref_service = CRUDService(Dbref, session)
|
||||
dbref_service = CRUDService(Dbref, session, polymorphic=True)
|
||||
exit_service = CRUDService(Exit, session)
|
||||
player_service = CRUDService(Player, session)
|
||||
program_service = CRUDService(Program, session)
|
||||
|
|
@ -42,4 +42,4 @@ app.register_blueprint(generate_crud_blueprint(Room, room_service), url_prefix="
|
|||
app.register_blueprint(generate_crud_blueprint(Thing, thing_service), url_prefix="/api/things")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
app.run(debug=True, port=5050)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue