diff options
| author | Tom Harley | 2021-07-31 14:06:45 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-07-31 19:30:35 +0000 |
| commit | 68703447d8fc57c7b77b66a6acc05bf22fb7d71b (patch) | |
| tree | 715006453d66889e210fd41f17aff9153f9a5092 /sw/__init__.py | |
| parent | Add templates (diff) | |
| download | swap-68703447d8fc57c7b77b66a6acc05bf22fb7d71b.tar.gz swap-68703447d8fc57c7b77b66a6acc05bf22fb7d71b.zip | |
Display inbox/outbox contents correctly
As per previous commit, the contents of inboxes and outboxes were not being properly displayed, which was difficult to test because of there being very few items in the test DB.
This commit includes moving functions such as prepared_output into a new file sw/util.py; including them in sw/users.py made little sense and caused a circular dependency with sw/auth.py.
A stub function for item info retreival has also been created, in new file sw/items.py.
Diffstat (limited to 'sw/__init__.py')
| -rw-r--r-- | sw/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/__init__.py b/sw/__init__.py index 6f2869a..cb9e8c9 100644 --- a/sw/__init__.py +++ b/sw/__init__.py @@ -2,7 +2,7 @@ import os from flask import Flask -from sw import auth, db, users +from sw import auth, db, users, items def create_app(test_config=None): @@ -27,5 +27,6 @@ def create_app(test_config=None): app.register_blueprint(auth.bp) app.register_blueprint(users.bp) + app.register_blueprint(items.bp) return app |
