Done so far Basic backend skeleton - technology choices - database migration outline - basic self hosting facade - basic REST outline - proof of concept for auth and privileges Basic frontend skeleton - technology choices - pretty robust frontend compilation - top navigation - proof of concept for registration form
8 lines
229 B
Python
8 lines
229 B
Python
from szurubooru.model.user import User
|
|
|
|
class UserService(object):
|
|
def __init__(self, session):
|
|
self._session = session
|
|
|
|
def get_by_name(self, name):
|
|
self._session.query(User).filter_by(name=name).first()
|