Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhidki committed Aug 4, 2023
1 parent 1e75d0c commit 69807ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions timApp/messaging/messagelist/messagelist_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down
2 changes: 1 addition & 1 deletion timApp/tests/server/timroutetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion timApp/timdb/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ sectionning = "sectionning"
eJwVy0EOhCAMQNG7dG0yahGFy5BaS2ZigEnFlfHu4vL95F8Q_qKJsuQKvuopHVDmb1HwAB0wJQlRS2r8vD40hlp2yS2YwTGamceerWXkaR0nIiTroiFaNtsPy = "eJwVy0EOhCAMQNG7dG0yahGFy5BaS2ZigEnFlfHu4vL95F8Q_qKJsuQKvuopHVDmb1HwAB0wJQlRS2r8vD40hlp2yS2YwTGamceerWXkaR0nIiTroiFaNtsPy"
Versio = "Versio"
MATA280 = "MATA280"
selectin = "selectin"

[default.extend-words]
# Custom corrections:
Expand Down

0 comments on commit 69807ec

Please sign in to comment.