Example #1
0
File: main.py Project: tek/proteome
 def _pick_commit(self):
     index = try_convert_int(self.msg.index)
     lifter = self._current_repo_ro / _.history_info / _.lift
     return index.ap(lifter).join.product(self.current)
Example #2
0
File: main.py Project: tek/proteome
 def switch(self):
     return try_convert_int(self.msg.index)\
         .map(__.select)\
         .flat_map(self._switch)