Fix for select match on directory scan

development
Andrew 4 years ago
parent 64554952d3
commit 4f138689ab
  1. 4
      stashr/utils.py

@ -1080,10 +1080,12 @@ def new_get_scrape_candidates(item):
if not match_found:
if str(candidate['start_year']) in item.directory_path:
scrape_candidate = candidate['id']
match_found = True
match_found = False
scrape_item.scrape_json = json.dumps(candidates.results)
scrape_item.scrape_candidate = scrape_candidate
scrape_item.scrape_match = match_found
scrape_item.scrape_add = match_found
database.session.merge(scrape_item)
database.session.commit()

Loading…
Cancel
Save