Ejemplo n.º 1
0
 def interpret(self, match):
     release_date = ReleaseDateOf(match.movie)
     release_date.tables = ["movies"]
     movie_name = ''.join(match.movie.nodes[0][1][1].split('"')[:-1])
     release_date.nodes = [u' title like "' + movie_name + '"']
     release_date.head = u"year"
     return release_date, ("literal", "MovieReleaseDateQuestion")
Ejemplo n.º 2
0
 def interpret(self, match):
     release_date = ReleaseDateOf(match.tvshow)
     return release_date, "literal"
Ejemplo n.º 3
0
 def interpret(self, match):
     release_date = ReleaseDateOf(match.movie)
     print(release_date)
     return release_date, "literal"
Ejemplo n.º 4
0
 def interpret(self, match):
     _movie, i, j = match.movie
     release_date = ReleaseDateOf(_movie)
     return release_date, ReturnValue(i, j)
Ejemplo n.º 5
0
 def interpret(self, match):
     tv_show, i, j = match.tvshow
     release_date = ReleaseDateOf(tv_show)
     return release_date, ReturnValue(i, j)