Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions infogami/infobase/dbstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def process(query):

def save_many(self, docs, timestamp, comment, data, ip, author, action=None):
docs = list(docs)
action = action or "bulk_update"
action = action or "default-bulk-update"
logger.debug(
"saving %d docs - %s",
len(docs),
Expand Down Expand Up @@ -210,7 +210,7 @@ def save(
logger.debug("saving %s", key)
timestamp = timestamp or datetime.datetime.utcnow
return self.save_many(
[doc], timestamp, comment, data, ip, author, action=action or "update"
[doc], timestamp, comment, data, ip, author, action=action or "default-update"
)

def reindex(self, keys):
Expand Down
4 changes: 2 additions & 2 deletions infogami/infobase/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_all(self, wildcard):
assert changes == [
{
"id": wildcard,
"kind": "update",
"kind": "default-update",
"author": None,
"ip": wildcard,
"timestamp": wildcard,
Expand All @@ -46,7 +46,7 @@ def test_all(self, wildcard):

assert site.get_change(changes[0]["id"]).dict() == {
"id": wildcard,
"kind": "update",
"kind": "default-update",
"author": None,
"ip": wildcard,
"timestamp": wildcard,
Expand Down
Loading