IW4M-Admin/Master/master/resources/null.py

12 lines
464 B
Python
Raw Normal View History

2018-04-18 16:46:53 -04:00
from flask_restful import Resource
from master.models.servermodel import ServerModel
from master.schema.serverschema import ServerSchema
from master.models.instancemodel import InstanceModel
from master.schema.instanceschema import InstanceSchema
class Null(Resource):
def get(self):
server = ServerModel(1, 'T6M', 'test', 0, 18, 'mp_test', 'tdm')
instance = InstanceModel(1, 1.5, 132, [server])
return InstanceSchema().dump(instance)