Skip to content

Conversation

@xsillen
Copy link
Contributor

@xsillen xsillen commented Mar 26, 2024

Before fixing the parameter concatenation:
d_price =
fields.DecimalField(max_digits=10, decimal_places=2null=True, )
p_price =
fields.DecimalField(max_digits=10, decimal_places=2null=True, )

After fixing the parameter concatenation:
d_price =
fields.DecimalField(max_digits=10, decimal_places=2, null=True, )
p_price =
fields.DecimalField(max_digits=10, decimal_places=2, null=True, )

Copy link
Contributor

@waketzheng waketzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 33: if self.data_type in ["decimal", "numeric"]:
Can be changed to elif self.data_type in ("decimal", "numeric"):

And line 39: length = ", ".join(length_parts)+", "
Shoud be changed to:

if length_parts:
    length = ", ".join(length_parts) + ", "

@waketzheng waketzheng merged commit 4e46d9d into tortoise:dev Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants