mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-26 02:23:12 -05:00
chore(deps): update dependency ruff to v0.4.2 (#3533)
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
@@ -27,10 +27,10 @@ class GUID(TypeDecorator):
|
||||
return str(value)
|
||||
else:
|
||||
if not isinstance(value, uuid.UUID):
|
||||
return "%.32x" % uuid.UUID(value).int
|
||||
return f"{uuid.UUID(value).int:032x}"
|
||||
else:
|
||||
# hexstring
|
||||
return "%.32x" % value.int
|
||||
return f"{value.int:032x}"
|
||||
|
||||
def load_dialect_impl(self, dialect):
|
||||
if dialect.name == "postgresql":
|
||||
|
||||
@@ -22,10 +22,10 @@ def getFeatures(token, index, tokens):
|
||||
length = len(tokens)
|
||||
|
||||
return [
|
||||
("I%s" % index),
|
||||
("L%s" % lengthGroup(length)),
|
||||
("Yes" if isCapitalized(token) else "No") + "CAP",
|
||||
("Yes" if insideParenthesis(token, tokens) else "No") + "PAREN",
|
||||
f"I{index}",
|
||||
f"L{lengthGroup(length)}",
|
||||
f"{'Yes' if isCapitalized(token) else 'No'}CAP",
|
||||
f"{'Yes' if insideParenthesis(token, tokens) else 'No'}PAREN",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user