Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Add parameter clarfication
Browse files Browse the repository at this point in the history
  • Loading branch information
cduhn17 committed Nov 15, 2021
1 parent 58f02a9 commit 407e8b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pe_reports/data/db_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ def query_domMasq(conn, org_uid, start_date, end_date):
close(conn)


"""
The 'table' parameter is used in query_shodan, query_darkweb and
query_darkweb_cves functions to call specific tables that relate to the function name.
The result of this implementation reduces the code base, the code reduction leads
to an increase in efficiency by reusing the function by passing only a parameter to get
the required information from the database.
"""


def query_shodan(conn, org_uid, start_date, end_date, table):
"""Query Shodan table."""
try:
Expand Down

0 comments on commit 407e8b2

Please sign in to comment.