You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/05/09 14:11:56 UTC

[incubator-ponymail-foal] branch master updated: Spelling

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new db6d46d  Spelling
db6d46d is described below

commit db6d46d1b26ecd47baf2fded1d6bb888ae23091d
Author: Sebb <se...@apache.org>
AuthorDate: Sun May 9 15:11:45 2021 +0100

    Spelling
---
 server/plugins/session.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/plugins/session.py b/server/plugins/session.py
index b3ab6c9..b119a45 100644
--- a/server/plugins/session.py
+++ b/server/plugins/session.py
@@ -31,7 +31,7 @@ import typing
 
 FOAL_MAX_SESSION_AGE = 86400 * 7  # Max 1 week between visits before voiding a session
 FOAL_SAVE_SESSION_INTERVAL = 3600  # Update sessions on disk max once per hour
-DATABSE_NOT_CONNECTED = "Database not connected!"
+DATABASE_NOT_CONNECTED = "Database not connected!"
 
 class SessionCredentials:
     uid: str
@@ -211,7 +211,7 @@ async def set_session(server: plugins.server.BaseServer, cid, **credentials):
 
 async def save_session(session: SessionObject):
     """Save a session object in the ES database"""
-    assert session.database, DATABSE_NOT_CONNECTED
+    assert session.database, DATABASE_NOT_CONNECTED
     await session.database.index(
         index=session.database.dbs.session,
         id=session.cookie,
@@ -225,13 +225,13 @@ async def save_session(session: SessionObject):
 
 async def remove_session(session: SessionObject):
     """Remove a session object in the ES database"""
-    assert session.database, DATABSE_NOT_CONNECTED
+    assert session.database, DATABASE_NOT_CONNECTED
     await session.database.delete(index=session.database.dbs.session, id=session.cookie)
 
 
 async def save_credentials(session: SessionObject):
     """Save a user account object in the ES database"""
-    assert session.database, DATABSE_NOT_CONNECTED
+    assert session.database, DATABASE_NOT_CONNECTED
     assert session.credentials, "Session object without credentials, cannot save!"
     await session.database.index(
         index=session.database.dbs.account,