Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:hm-seclab/YAFRA into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAlexmeister committed Jul 15, 2021
2 parents fb312d4 + bf36c94 commit 3e1f947
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iocextractor/core/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def refetch_blacklist():
content = {}
try:
if len(Extractor.BLACKLIST) <= 0:
with open(os.path.abspath("../../datasets/blacklist.json")) as content:
with open(os.path.abspath("../datasets/blacklist.json")) as content:
content = json.load(content)
else:
content = read_file_from_gitlab(gitlabserver=GITLAB_SERVER, token=GITLAB_TOKEN, repository=GITLAB_REPO_NAME, file="blacklist.json", servicename=SERVICENAME, branch_name="master")
Expand Down
6 changes: 3 additions & 3 deletions scraper/core/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ def refetch_sources():
twitter_content = {}
try:
if len(Scraper.SOURCES) <= 0:
with open(os.path.abspath("../../datasets/sources/api_sources.json")) as api_content, open(
os.path.abspath("../../datasets/sources/rss_sources.json")) as rss_content, open(
os.path.abspath("../../datasets/sources/twitter_sources.json")) as twitter_content:
with open(os.path.abspath("../datasets/sources/api_sources.json")) as api_content, open(
os.path.abspath("../datasets/sources/rss_sources.json")) as rss_content, open(
os.path.abspath("../datasets/sources/twitter_sources.json")) as twitter_content:
api_content = json.load(api_content)
rss_content = json.load(rss_content)
twitter_content = json.load(twitter_content)
Expand Down

0 comments on commit 3e1f947

Please sign in to comment.