Commits

Jason R. Coombs  committed 7c4e8c4

Fix incorrect parameter ordering

  • Participants
  • Parent commits fe67baf
  • Tags 1103.3.2

Comments (0)

Files changed (1)

File pmxbot/rolls.py

 		self.db.execute(INDEX_DT_CREATE_SQL)
 		self.db.commit()
 
-	def log(self, channel, nick, change):
+	def log(self, nick, channel, change):
 		INSERT_LOG_SQL = 'INSERT INTO rolls (datetime, channel, nick, change) VALUES (?, ?, ?, ?)'
 		now = datetime.datetime.utcnow()
 		self.db.execute(INSERT_LOG_SQL, [now, channel, nick, change])
 class MongoDBLogger(ParticipantLogger, storage.MongoDBStorage):
 	collection_name = 'rolls'
 
-	def log(self, channel, nick, change):
+	def log(self, nick, channel, change):
 		self.db.ensure_index([
 			('datetime.d', pymongo.DESCENDING),
 			('channel', pymongo.ASCENDING),