mirror of
https://github.com/alecmuffett/real-world-onion-sites.git
synced 2024-12-24 06:39:31 -05:00
commit: DETECTOR_HISTORY
This commit is contained in:
parent
864d3b00ab
commit
8db1e1bc98
@ -20,6 +20,7 @@ RETRY_SLEEP = 60
|
|||||||
RETRY_LIMIT = 6
|
RETRY_LIMIT = 6
|
||||||
PLACEHOLDER = '-'
|
PLACEHOLDER = '-'
|
||||||
POOL_WORKERS = 10
|
POOL_WORKERS = 10
|
||||||
|
DETECTOR_HISTORY=14
|
||||||
YES = 'y'
|
YES = 'y'
|
||||||
|
|
||||||
EMOJI_HTTP = ':wrench:'
|
EMOJI_HTTP = ':wrench:'
|
||||||
@ -114,7 +115,7 @@ class Database:
|
|||||||
self.commit()
|
self.commit()
|
||||||
self.connection.close()
|
self.connection.close()
|
||||||
|
|
||||||
def summary(self, url, limit=10):
|
def summary(self, url, limit=DETECTOR_HISTORY):
|
||||||
params = { 'url': url, 'limit': limit }
|
params = { 'url': url, 'limit': limit }
|
||||||
rows = self.cursor.execute(SUMMARY_SQL, params)
|
rows = self.cursor.execute(SUMMARY_SQL, params)
|
||||||
return rows.fetchall()
|
return rows.fetchall()
|
||||||
|
Loading…
Reference in New Issue
Block a user