def get_by_timestamp_great_than_equal(self, query, timestamp): return Operation.great_than_equal(query, self.model.timestamp, timestamp)
def get_by_small_weight(self, query, weight): return Operation.great_than_equal(query, self.model.weight, weight)
def get_nearest_distance(self, distance): query = self.get_query() query = Operation.great_than_equal(query, self.model.distance, distance) query = self.order_by_id_asc(query) return Operation.first(query)
def find_by_birthday(self, query, small_date, big_date): query = Operation.less_than(query, self.model.birthday, big_date) query = Operation.great_than_equal(query, self.model.birthday, small_date) return query
def get_great_than_equal_changed_at(self, query, changed_at): return Operation.great_than_equal(query, self.model.changed_at, changed_at)