Discogs.Tasks (discogs_shuffle v0.2.1) View Source
Namespace for common application tasks.
Link to this section Summary
Functions
Shuffles records a user's collection, returning n = num_records
.
Fetches a user's collection from Discogs, persists all associated models to the local db and updates the user's collection if had been stored previously.
Link to this section Types
Specs
result() :: :ok | Discogs.Services.JSONFetch.http_error()
Link to this section Functions
Specs
shuffle_collection(username :: String.t(), num_records :: pos_integer()) :: [ %Discogs.Models.Record{ __meta__: term(), artists: term(), disc_number: term(), id: term(), inserted_at: term(), release: term(), release_id: term(), updated_at: term() } ]
Shuffles records a user's collection, returning n = num_records
.
Specs
Fetches a user's collection from Discogs, persists all associated models to the local db and updates the user's collection if had been stored previously.