def get(self):
		parse = Parse()
		transactions = parse.getActivitiesRecursive(0, 10)

		searchString = request.args.get('search')
		txns = parse.getEventsWithUserWrapper(searchString)
		print(txns)
		
		return flask.render_template('transactions.html', transactions = transactions, txns = txns)
示例#2
0
    def get(self):
        parse = Parse()
        # fetches users
        users = parse.getUserWrappersWithUserRecursive(0, 10)

        # search by objectId
        searchString = request.args.get("search")
        userWrapper = parse.getUserWrapperWithObjectId(searchString)

        # update
        objectId = request.args.get("update")
        update(objectId)
        return flask.render_template("users.html", users=users, userWrapper=userWrapper)