We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab97e6 commit 7ece60dCopy full SHA for 7ece60d
lib/algora/workspace/workspace.ex
@@ -826,8 +826,14 @@ defmodule Algora.Workspace do
826
end
827
828
829
- def fetch_top_contributions(token, provider_logins) when is_list(provider_logins) do
830
- users_with_contributions = get_users_with_contributions(provider_logins)
+ def fetch_top_contributions(token, provider_logins, opts \\ []) when is_list(provider_logins) do
+ users_with_contributions =
831
+ if opts[:refresh] do
832
+ []
833
+ else
834
+ get_users_with_contributions(provider_logins)
835
+ end
836
+
837
users_with_contributions_logins = Enum.map(users_with_contributions, & &1.provider_login)
838
839
users_without_contributions = provider_logins -- users_with_contributions_logins
0 commit comments