Mercurial > public > sg101
annotate gpp/legacy/data.py @ 479:32cec6cd8808
Refactor RateLimiter so that if Redis is not running, everything still runs normally (minus the rate limiting protection). My assumption that creating a Redis connection would throw an exception if Redis wasn't running was wrong. The exceptions actually occur when you issue a command. This is for #224.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 25 Sep 2011 00:49:05 +0000 |
parents | 2367c4795c92 |
children | 4021ea1045f7 |
rev | line source |
---|---|
bgneal@292 | 1 """ |
bgneal@292 | 2 Misc data for the legacy management commands. |
bgneal@292 | 3 |
bgneal@292 | 4 """ |
bgneal@292 | 5 |
bgneal@292 | 6 # Over time various users asked me to change their username. The legacy site |
bgneal@292 | 7 # rarely stored foreign keys to users; instead it stored the name of the user |
bgneal@292 | 8 # at the time. This dictionary contains mappings from old usernames to new |
bgneal@292 | 9 # usernames. |
bgneal@292 | 10 |
bgneal@292 | 11 KNOWN_USERNAME_CHANGES = { |
bgneal@292 | 12 'cavefishbutchdelux': 'butchdelux', |
bgneal@292 | 13 'Findicator1': 'WaveOhhh', |
bgneal@292 | 14 'Tikimania': 'Tikitena', |
bgneal@292 | 15 'sandyfeet': 'RickRhoades', |
bgneal@292 | 16 } |
bgneal@292 | 17 |