Compare commits
2 Commits
9a279d44b1
...
42dcf15374
Author | SHA1 | Date | |
---|---|---|---|
42dcf15374 | |||
d8a0b77765 |
|
@ -5,7 +5,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
|||
from sqlalchemy.orm import sessionmaker
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
|
||||
engine = create_engine('sqlite:///data/qotnews.sqlite')
|
||||
engine = create_engine('sqlite:///data/qotnews.sqlite', connect_args={'timeout': 120})
|
||||
Session = sessionmaker(bind=engine)
|
||||
|
||||
Base = declarative_base()
|
||||
|
|
|
@ -13,7 +13,7 @@ from feeds import hackernews, reddit, tildes, manual
|
|||
OUTLINE_API = 'https://api.outline.com/v3/parse_article'
|
||||
READ_API = 'http://127.0.0.1:33843'
|
||||
|
||||
INVALID_DOMAINS = ['youtube.com', 'bloomberg.com', 'wsj.com']
|
||||
INVALID_DOMAINS = ['youtube.com', 'bloomberg.com', 'wsj.com', 'sec.gov']
|
||||
TWO_DAYS = 60*60*24*2
|
||||
|
||||
def list():
|
||||
|
|
Loading…
Reference in New Issue
Block a user