fix(copy): correct Russian ID agreement
This commit is contained in:
1 parent
f435b64d3c
commit
1979583550
5 files changed
+14
-11
No files matched your search
@@ -179,7 +179,7 @@ class CalculationStore:
|
||||
def delete_calculation(self, calculation_id: int) -> bool:
|
||||
"""Delete one history row and report whether it existed."""
|
||||
if isinstance(calculation_id, bool) or not isinstance(calculation_id, int) or calculation_id <= 0:
|
||||
raise ValueError("ID записи должно быть положительным целым числом")
|
||||
raise ValueError("ID записи должен быть положительным целым числом")
|
||||
if self.database_url.startswith(("postgres://", "postgresql://")):
|
||||
with self._psycopg.connect(self.database_url) as connection:
|
||||
row = connection.execute(
|
||||
|
||||
Reference in new issue
Block a user