Browse Source

simplify pin code

main
familyfriendlymikey 2 years ago
parent
commit
9dea4a0270
  1. 4
      app/client.imba

4
app/client.imba

@ -121,9 +121,7 @@ tag app
if state.query.trim!.length > 0
state.scored_links = fzi state.links, state.query
else
let pinned = do |link| link.is_pinned
let frequency = do |link| link.frequency
state.scored_links = orderBy(state.links, [pinned, frequency], ['desc', 'desc'])
state.scored_links = orderBy(state.links, ['is_pinned', 'frequency'], ['desc', 'desc'])
def increment_link_frequency link
try

Loading…
Cancel
Save