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 a33f530 commit a676851
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion timApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ ARG CHROME_DRIVER_VERSION
RUN bash -c "${APT_INSTALL} jq && ${APT_CLEANUP}"
RUN if [ ! -z "$CHROME_DRIVER_VERSION" ]; \
then CHROME_DRIVER_URL=https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_DRIVER_VERSION/linux64/chromedriver-linux64.zip ; \
else echo "Geting ChromeDriver binary from https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json" \
else echo "Getting ChromeDriver binary from https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json" \
&& CFT_URL=https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json \
&& CFT_CHANNEL="Stable" \
&& if [ "$(echo "$CHROME_VERSION" | grep -q "beta")" ]; then CFT_CHANNEL="Beta"; fi \
Expand Down
4 changes: 1 addition & 3 deletions timApp/messaging/messagelist/messagelist_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,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 a676851

Please sign in to comment.