Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed typos #11

Merged
merged 1 commit into from

2 participants

@pborreli

No description provided.

@kennethreitz
Owner

sigh :)

@kennethreitz kennethreitz merged commit 325e7ba into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. @pborreli

    Fixed typos

    pborreli authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +1 −1  README.rst
  2. +4 −4 elephant.py
View
2  README.rst
@@ -64,7 +64,7 @@ Reseeding ElasticSearch is super simple::
Indexing...
[#### ] 29/378
-Inpsiration
+Inspiration
-----------
Extracted out of the in-progress `blackbox <https://github.com/kennethreitz/blackbox>`_ project.
View
8 elephant.py
@@ -100,7 +100,7 @@ def mkdir_p(path):
def epoch(dt=None):
- """Returns the epoch value for the given datetime, defulting to now."""
+ """Returns the epoch value for the given datetime, defaulting to now."""
if not dt:
dt = datetime.utcnow()
@@ -126,7 +126,7 @@ def iter_search(self, query, **kwargs):
if query is None:
query = '*'
- # Pepare elastic search queries.
+ # Prepare elastic search queries.
params = {}
for (k, v) in kwargs.items():
params['es_{0}'.format(k)] = v
@@ -276,7 +276,7 @@ def seed():
@app.before_request
def require_apikey():
- """Blocks aunauthorized requests."""
+ """Blocks unauthorized requests."""
# TODO: Convert this to a decorator
if app.debug:
@@ -325,7 +325,7 @@ def post_collection(collection):
@app.route('/<collection>/<uuid>')
def get_record(collection, uuid):
- """Get a record from a given colection."""
+ """Get a record from a given collection."""
return jsonify(record=Collection(collection)[uuid].dict)
@app.route('/<collection>/<uuid>', methods=['POST'])
Something went wrong with that request. Please try again.