def post_entry(cls, user_model): print json.dumps(user_model.__dict__) response = EntryDB.table() \ .insert(user_model.__dict__) \ .run(db.r_conn()) print response return response
def get_entries(cls, user_id): response = EntryDB.table() \ .filter({'userId': user_id}) \ .run(db.r_conn()) return response