Skip to content

Commit

Permalink
Version 1.1.3
Browse files Browse the repository at this point in the history
Merge pull request #13 from Djcharles26/work
  • Loading branch information
Djcharles26 authored Aug 6, 2021
2 parents 6140fd9 + bca9e44 commit 3bcdb8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
## Minor updates
- Fixed missing retval field in mongo_types aggregate
- Added validation for empty skip in find method
- Added validation of initial id in __init__ method
3 changes: 2 additions & 1 deletion pymongoose/mongo_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def __init__(self, schema_name, schema, initial_values = {}):
"""
self.schema = schema
self.schema_name = schema_name
self.id = ObjectId()
id = initial_values["id"] if "id" in initial_values else ObjectId()
self.id = ObjectId(id) if type(id) is str else id

is_empty = False
if "empty" in initial_values:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pymongoose
version = 1.1.2
version = 1.1.3
author = Juan Carlos Lara
author_email = jlaraanaya@gmail.com
description = A pymongo helper with methods and classes
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2
1.1.3

0 comments on commit 3bcdb8d

Please sign in to comment.