def create(body): request_body = RequestBody(body) result = TallySheetVersion.create( tallySheetId=request_body.get("tallySheetId")) db.session.commit() return Schema().dump(result).data, 201
def create_empty_version(self): tally_sheet_version = TallySheetVersion.create( tallySheetId=self.tallySheetId) return tally_sheet_version