Revert "whitespace nitpicking" because I want to merge this the right way
This reverts commit b9c2be8c543ebc34ab210a6dfc3ba81f73a1e8a0.
This commit is contained in:
		
							parent
							
								
									b9c2be8c54
								
							
						
					
					
						commit
						c1c29648d7
					
				| @ -61,7 +61,7 @@ class Karma(Module): | ||||
|                     SELECT key, SUM(delta) AS value | ||||
|                     FROM karma_log | ||||
|                     GROUP BY key''') | ||||
| 
 | ||||
|                  | ||||
|                 sql = 'INSERT INTO drbotzo_modules VALUES (?,?)' | ||||
|                 conn.execute(sql, (self.__class__.__name__, 1)) | ||||
|                 conn.commit() | ||||
| @ -118,10 +118,10 @@ class Karma(Module): | ||||
|                 ''' | ||||
|                 rank = conn.execute(query, {'value': value[0]}).fetchone() | ||||
|                 rank = rank[0] + 1; | ||||
| 
 | ||||
|                  | ||||
|                 reply = '{nick}: {key} has {value[0]!s} points of karma (rank {rank})'.format( | ||||
|                     nick=nick, key=key, value=value, rank=rank) | ||||
| 
 | ||||
|         | ||||
|         finally: conn.close() | ||||
| 
 | ||||
|         self.reply(connection, replypath, reply) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user