Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixed a problem of parsing REDIS_URL #2

Merged
merged 1 commit into from

2 participants

@weboo

Hi,

I fixed a problem of parsing REDIS_URL parameter.
Please check it.

Thanks,
Hidetaka

@playpauseandstop playpauseandstop merged commit 221d20c into from
@weboo

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 29, 2012
  1. @weboo
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask_redis.py
View
4 flask_redis.py
@@ -83,8 +83,8 @@ def init_app(self, app):
app.config['REDIS_PORT'] = url.port
app.config['REDIS_USER'] = url.username
app.config['REDIS_PASSWORD'] = url.password
- app.config['REDIS_DB'] = \
- url.path if url.path.isdigit() else None
+ db = url.path.replace('/', '')
+ app.config['REDIS_DB'] = db if db.isdigit() else None
spec = inspect.getargspec(BaseRedis.__init__)
args = set(spec.args).difference(set(['self']))
Something went wrong with that request. Please try again.