Skip to content

Conversation

@leo-laiolo-coopengo
Copy link
Contributor

list_args = list(*args) if len(args) == 1 else list(args)
str_values = list_args[1] if len(
list_args[1:]) == 1 else tuple(list_args[1:])
return list_args[0] % str_values
Copy link
Member

Choose a reason for hiding this comment

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

c'est quoi le cas d'usage de cette méthode ?

Copy link
Contributor

Choose a reason for hiding this comment

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

pretty_sql(cls.search([], query=True))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cette implémentation était overkilled. Je suis revenu sur la version standard.

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.

4 participants