From 68703447d8fc57c7b77b66a6acc05bf22fb7d71b Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sat, 31 Jul 2021 14:06:45 +0000 Subject: 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. --- tests/data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/data.sql') diff --git a/tests/data.sql b/tests/data.sql index 5add3a2..5e6ddde 100644 --- a/tests/data.sql +++ b/tests/data.sql @@ -3,7 +3,7 @@ values ('test', 'pbkdf2:sha256:50000$TCI4GzcX$0de171a4f4dac32e3364c7ddc7c14f3e2fa61f2d17574483f7ffbb431b4acb2f', 40), ('other', 'pbkdf2:sha256:50000$kJPKsz6N$d2d4784f1b030a9761f5ccaeeaca413f27f2ecb76d6168407af962ddce849f79', 0); -insert into inbox (recipient, ap_content, received) +insert into inbox (recipient, content_id, received) values ('test', '1', '2021-07-09T11:21:58+0000'), ('test', '2', '2021-07-09T11:21:58+0000'), -- cgit v1.2.1