You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vulnerability scan does not complete its execution.
Previously it threw an exception for null when running the scan for low vulnerabilities. To fix this, add a condition in the function: record_exists(model, data, exclusion_keys=[]):
"""
Check if a record already exists in the database based on the data provided.
Arguments:
model (django.db.models.Model) – The Django model to compare against.
data (dict): Data dictionary containing fields and values.
exclude_keys (list) – List of keys to exclude from the search.
Returns:
bool: True if the record exists, False otherwise.
"""
# Extract the keys to be used for the search.
lookup_fields = {key: data[key] to enter data if key is not in exclude_keys}
if search_fields:
return model.objects.filter(**lookup_fields).exists()
the rest:
false return
but once I fix this, it doesn't finish my core scans.
👋 Hi @lucasRivas19,
Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki
For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.
Is there an existing issue for this?
Current Behavior
The vulnerability scan does not complete its execution.
Previously it threw an exception for null when running the scan for low vulnerabilities. To fix this, add a condition in the function: record_exists(model, data, exclusion_keys=[]):
"""
Check if a record already exists in the database based on the data provided.
but once I fix this, it doesn't finish my core scans.
Expected Behavior
I want the vulnerability scan to be completed
Steps To Reproduce
1- perform recommended scan
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: