Skip to content

Commit

Permalink
update examples to use annotations to remove raw object
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed Mar 31, 2018
1 parent 2549865 commit cad3d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/blocking/blocking.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import rltk


@rltk.remove_raw_object
class Record1(rltk.Record):
remove_raw_object = True

@rltk.cached_property
def id(self):
Expand All @@ -17,8 +17,8 @@ def last_name(self):
return self.raw_object['last name']


@rltk.remove_raw_object
class Record2(rltk.Record):
remove_raw_object = True

@rltk.cached_property
def id(self):
Expand Down
4 changes: 2 additions & 2 deletions examples/blocking/inverted_index.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import rltk


@rltk.remove_raw_object
class Record1(rltk.Record):
remove_raw_object = True

@rltk.cached_property
def id(self):
Expand All @@ -21,8 +21,8 @@ def full_name(self):
return self.first_name + ' ' + self.last_name


@rltk.remove_raw_object
class Record2(rltk.Record):
remove_raw_object = True

@rltk.cached_property
def id(self):
Expand Down

0 comments on commit cad3d5e

Please sign in to comment.