lv upgrade done; home.html form needs changed; test migrations

This commit is contained in:
2024-06-02 14:44:53 +02:00
parent 443081e086
commit 31c126a394
25 changed files with 1452 additions and 284 deletions

View File

@ -0,0 +1,25 @@
defmodule SomethingErlang.AwfulApi do
require Logger
alias SomethingErlang.AwfulApi.Thread
alias SomethingErlang.AwfulApi.Bookmarks
@doc """
Returns a list of all posts on page of a thread.
## Examples
iex> t = AwfulApi.parsed_thread(3945300, 1)
iex> length(t.posts)
42
iex> t.page_count
12
"""
def parsed_thread(id, page, user) do
Thread.compile(id, page, user)
end
def bookmarks(user) do
Bookmarks.compile(1, user)
end
end