From 69807ecc38e66c104be4a68d6f5a3843f6273076 Mon Sep 17 00:00:00 2001 From: dezhidki Date: Fri, 4 Aug 2023 11:04:09 +0300 Subject: [PATCH] Fix typos --- timApp/messaging/messagelist/messagelist_models.py | 4 +--- timApp/tests/server/timroutetest.py | 2 +- timApp/timdb/types.py | 2 +- typos.toml | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/timApp/messaging/messagelist/messagelist_models.py b/timApp/messaging/messagelist/messagelist_models.py index b0854c268b..2749604c97 100644 --- a/timApp/messaging/messagelist/messagelist_models.py +++ b/timApp/messaging/messagelist/messagelist_models.py @@ -340,9 +340,7 @@ def is_personal_user(self) -> bool: return self.is_external_member() ug = ( - db.session.exectute( - select(UserGroup).filter_by(id=self.tim_member.group_id) - ) + db.session.execute(select(UserGroup).filter_by(id=self.tim_member.group_id)) .scalars() .one() ) diff --git a/timApp/tests/server/timroutetest.py b/timApp/tests/server/timroutetest.py index 405003a9d2..1d22b8d72b 100644 --- a/timApp/tests/server/timroutetest.py +++ b/timApp/tests/server/timroutetest.py @@ -162,7 +162,7 @@ def setUp(self): # FIXME: It is a VERY bad idea to enter a client context for the duration of the entire test # because the client is not multithreaded. See https://github.com/pallets/flask/issues/4734 - # Instead, the client contex should be entered only in specific tests and explicitly + # Instead, the client context should be entered only in specific tests and explicitly self.client = self.client.__enter__() self.client.open("/") del_g() diff --git a/timApp/timdb/types.py b/timApp/timdb/types.py index 5d744e79bd..1528831093 100644 --- a/timApp/timdb/types.py +++ b/timApp/timdb/types.py @@ -20,7 +20,7 @@ class DbModel(DeclarativeBase, Model): datetime_tz: DateTime(timezone=True), } - # Add check for mypy to suppress __tablename__ error when it's overriden as a string and not a method + # Add check for mypy to suppress __tablename__ error when it's overridden as a string and not a method if not TYPE_CHECKING: @declared_attr.directive diff --git a/typos.toml b/typos.toml index f401584fda..fe43582018 100644 --- a/typos.toml +++ b/typos.toml @@ -60,6 +60,7 @@ sectionning = "sectionning" eJwVy0EOhCAMQNG7dG0yahGFy5BaS2ZigEnFlfHu4vL95F8Q_qKJsuQKvuopHVDmb1HwAB0wJQlRS2r8vD40hlp2yS2YwTGamceerWXkaR0nIiTroiFaNtsPy = "eJwVy0EOhCAMQNG7dG0yahGFy5BaS2ZigEnFlfHu4vL95F8Q_qKJsuQKvuopHVDmb1HwAB0wJQlRS2r8vD40hlp2yS2YwTGamceerWXkaR0nIiTroiFaNtsPy" Versio = "Versio" MATA280 = "MATA280" +selectin = "selectin" [default.extend-words] # Custom corrections: