equal
deleted
inserted
replaced
83 Add a date selection column. |
83 Add a date selection column. |
84 """ |
84 """ |
85 def __init__(self, col, lookup_type, date_sql_func): |
85 def __init__(self, col, lookup_type, date_sql_func): |
86 self.col = col |
86 self.col = col |
87 self.lookup_type = lookup_type |
87 self.lookup_type = lookup_type |
88 self.date_sql_func= date_sql_func |
88 self.date_sql_func = date_sql_func |
89 |
89 |
90 def relabel_aliases(self, change_map): |
90 def relabel_aliases(self, change_map): |
91 c = self.col |
91 c = self.col |
92 if isinstance(c, (list, tuple)): |
92 if isinstance(c, (list, tuple)): |
93 self.col = (change_map.get(c[0], c[0]), c[1]) |
93 self.col = (change_map.get(c[0], c[0]), c[1]) |