Complex sentence: There were only two categories of posts which were chosen not by lot, but by election in the Popular Assembly, that of "strategos", or general, and that of magistrate of finance.
Split into simpler sentences: There were only two categories of posts not chosen by lot, but by election in the Popular Assembly. These were "strategos", or general, and magistrate of finance.