Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
perfer to import from the famous one
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Aug 24, 2020
1 parent 787364a commit ec96e55
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,12 @@ let core = {
if (ads.dirStatus(dir)) return

// log('picking up', dir)
let l = _.find(db, a => a.dir.indexOf(dir) >= 0 && cfg.testMode(a.mode))
let l = _.filter(db, a => a.dir.indexOf(dir) >= 0 && cfg.testMode(a.mode))

if (!l) return
if (!l.length) return
l.sort((a, b) => a.id - b.id)
// log(l)
l = l[0]

// log('found', l)
importedDirs++
Expand Down

0 comments on commit ec96e55

Please sign in to comment.