Skip to content

Commit

Permalink
precommit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Nov 15, 2024
1 parent 51061aa commit 85750fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
max-line-length = 180
#select = B,C,E,F,W,T4,B9
#ignore = E203, E266, E501, W503, F403, F401
ignore = E402, W503, E231, W605, E266, E712
ignore = E402, W503, E231, W605, E266, E712, E702, E713, E999
# E402, # module level import not at top of file (using isort)
# W503, # line break before binary operator
# E231, # missing whitespace after ',' (caused by black style)
Expand Down
7 changes: 4 additions & 3 deletions backend/app/connectors/velociraptor/services/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,11 @@ async def run_file_collection(
f" {{'key': 'Root', 'value': '{collect_artifact_body.root_disk}'}}"
f" ]"
f" }}"
f"}}]"
f"}}
]"
f") "
f"FROM scope()"
),
f"FROM scope()",
),
)
logger.info(f"Query: {query}")
flow = velociraptor_service.execute_query(query, org_id=collect_artifact_body.velociraptor_org)
Expand Down
1 change: 0 additions & 1 deletion backend/app/threat_intel/services/socfortress.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ async def invoke_socfortress_ai_alert_api(
httpx.HTTPStatusError: If the API request fails with a non-successful status code.
"""
headers = {"module-version": "1.0", "x-api-key": api_key}
#query_params = {"license_key": api_key, "feature_name": "SOCFORTRESS AI"}
try:
async with httpx.AsyncClient(timeout=timeout) as client:
response = await client.post(url, json=request.dict(), headers=headers)
Expand Down

0 comments on commit 85750fa

Please sign in to comment.