Skip to content

Commit

Permalink
Fixed wathcer naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wallneradam committed Nov 21, 2024
1 parent 174be5e commit 16434b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions esorm/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ async def setup_watchers(*_, debug=False):
if debug:
from pprint import pformat
logger.debug(
f"`{Watcher.__name__}` watcer:\n {pformat(watcher.to_es(), indent=2, width=100, compact=False, sort_dicts=False)}")
await es.watcher.put_watch(id=Watcher.__name__, **watcher.to_es())
logger.info(f"Watcher {Watcher.__name__} created.")
f"`{WatcherClass.__name__}` watcher:\n {pformat(watcher.to_es(), indent=2, width=100,
compact=False, sort_dicts=False)}")
await es.watcher.put_watch(id=WatcherClass.__name__, **watcher.to_es())
logger.info(f"Watcher {WatcherClass.__name__} created.")
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pyesorm
version = 0.6.4
version = 0.6.5
author = Adam Wallner
author_email = [email protected]
description = Python ElasticSearch ORM based on Pydantic
Expand Down

0 comments on commit 16434b4

Please sign in to comment.