Commit 804147c0 by Piotr Mitros

Finished rename in example

parent 0101fade
......@@ -3,7 +3,7 @@ import sys
from djanalytics.core.decorators import event_handler
@event_handler()
def dump_to_db(db, events):
def dump_to_db(mongodb, events):
## TODO: Error handling
collection = db['event_log']
collection = mongodb['event_log']
collection.insert([e.event for e in events])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment