MCPcopy
hub / github.com/diffgram/diffgram / get_current_user

Method get_current_user

shared/database/user.py:317–319  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

315 return roles
316 @staticmethod
317 def get_current_user(session):
318
319 return session.query(User).filter_by(id = getUserID(session = session)).first()
320
321 @staticmethod
322 def get(session):

Callers 1

Calls 1

getUserIDFunction · 0.90

Tested by

no test coverage detected