Skip to content

Commit

Permalink
Last Synced
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Nov 25, 2023
1 parent 8ef0e9d commit 0bbcd81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/helpers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Helpers
"dependencies" => "Dependencies",
"recent-updates" => "Recent Updates",
"new" => "Newly Added",
"last-synced" => "Last Synced",
}

def sync_repository_by_url(url : String) : Repository?
Expand Down Expand Up @@ -155,6 +156,8 @@ module Helpers
{"(select COUNT(*) from relationships r WHERE r.master_id=repositories.id)", :desc}
when "recent-updates"
{"last_activity_at", :desc}
when "last-synced"
{"synced_at", :desc}
when "new"
{"created_at", :desc}
else
Expand Down

0 comments on commit 0bbcd81

Please sign in to comment.