Skip to content

Commit c8100a5

Browse files
committed
fix: Wrong decimal format by default + typo
1 parent 5aed764 commit c8100a5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ If you want to get exact fields:
105105

106106
result = item.to_dict(only=('non_sql_field', 'method', 'somefield'))
107107
```
108-
**Note** that if ***somefield*** is an SQLAlchemy instance, you get all it's
108+
**Note** that if ***somefield*** is an SQLAlchemy instance, you get all its
109109
serializable fields. So if you want to get only some of them, you should define it like below:
110110
```python
111111

@@ -523,7 +523,7 @@ serialize_only = ('some_field') # <--- WRONG it is actually not a tuple
523523
```
524524

525525
# Tests
526-
To run tests and see tests coverage report just type the following command:(docker and docker-compose should be installed on you local machine)
526+
To run tests and see tests coverage report just type the following command: (docker and docker-compose should be installed on your local machine)
527527
```bash
528528
make test
529529
```

sqlalchemy_serializer/lib/serializable/decimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
class Decimal(Base):
7-
def __init__(self, str_format: str = "%H:%M:%S") -> None:
7+
def __init__(self, str_format: str = "{}") -> None:
88
self.str_format = str_format
99

1010
def __call__(self, value: decimal.Decimal) -> str:

0 commit comments

Comments
 (0)