Peggun / osd

Open-Source Data for everyone to use freely. Built upon the Flask framework in Python
Apache License 2.0
1 stars 0 forks source link

RuntimeError: A 'SQLAlchemy' instance has already been registered on this Flask app. Import and use that instan... #16

Closed sentry-io[bot] closed 3 months ago

sentry-io[bot] commented 3 months ago

Sentry Issue: OSD-APP-G

RuntimeError: A 'SQLAlchemy' instance has already been registered on this Flask app. Import and use that instance instead.
(1 additional frame(s) were not displayed)
...
  File "parse_books.py", line 128, in <module>
    found_files, file_count, elapsed_time, num_of_txt_files, num_of_html_files, num_of_txt_files_with_term, num_of_html_files_with_term, files_with_both_terms, files_without_any_term, files_with_either_term = scan_directory(directory_to_scan, search_terms)
  File "parse_books.py", line 118, in scan_directory
    parse_into_db(results)
  File "parse_books.py", line 18, in parse_into_db
    init_db()

This issue was automatically created by Sentry via Send a notification for new issues