Commits

Jason R. Coombs committed 6a1e43a

Updated get_channel_days to honor channel

  • Participants
  • Parent commits 56d23dc
  • Tags 1100.8.2

Comments (0)

Files changed (1)

File pmxbot/logging.py

 		return (item['message'] for item in random.sample(cur, limit))
 
 	def get_channel_days(self, channel):
-		return self.db.find(fields=['datetime.d']).distinct('datetime.d')
+		query = dict(channel=channel)
+		return self.db.find(query, fields=['datetime.d']).distinct('datetime.d')
 
 	def get_day_logs(self, channel, day):
 		query = {'channel': channel, 'datetime.d': day}