Commits

Jason R. Coombs committed d40b83a

get_day_logs now strips microsecond for consistency with sqlite implementation

  • Participants
  • Parent commits 298c3b9
  • Tags 1100.7

Comments (0)

Files changed (1)

pmxbot/logging.py

 		query = {'channel': channel, 'datetime.d': day}
 		cur = self.db.find(query).sort('_id')
 		return (
-			(rec['datetime']['t'], rec['nick'], rec['message'])
+			(rec['datetime']['t'].replace(microsecond=0), rec['nick'], rec['message'])
 			for rec in cur
 		)