[elbe-devel] [PATCH] elbepack: db: drop unused get_username()
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 27 09:05:09 CEST 2024
This method is not used anymore.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/db.py | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/elbepack/db.py b/elbepack/db.py
index b3651d8d18d8..c1f1bedba83b 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -571,15 +571,6 @@ class ElbeDB:
# Everything good, now return the user id to the caller
return int(u.id)
- def get_username(self, userid):
- with session_scope(self.session) as s:
- try:
- u = s.query(User).filter(User.id == userid).one()
- except NoResultFound:
- raise ElbeDBError(f'no user with id {userid}')
-
- return str(u.name)
-
def get_user_id(self, name):
with session_scope(self.session) as s:
try:
---
base-commit: 2e15ac10ea87803452ee01d7b1ee13f02d804041
change-id: 20240827-get_username-a6e26895bd65
Best regards,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list