Skip to content

Commit 045bc30

Browse files
Akshit MaheshwaryAkshit Maheshwary
authored andcommitted
fixed deepsource issue and updated migration numbers
1 parent c57d234 commit 045bc30

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

api_app/analyzers_manager/file_analyzers/capa_info.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ def _update_rules_file_version(cls, latest_version: str, file_url: str):
5151
base_path="api_app.analyzers_manager.file_analyzers",
5252
)
5353

54-
analyzer_rules_file_version, created = (
55-
AnalyzerRulesFileVersion.objects.update_or_create(
56-
python_module=capa_module,
57-
defaults={
58-
"last_downloaded_version": latest_version,
59-
"download_url": file_url,
60-
"downloaded_at": timezone.now(),
61-
},
62-
)
54+
_, created = AnalyzerRulesFileVersion.objects.update_or_create(
55+
python_module=capa_module,
56+
defaults={
57+
"last_downloaded_version": latest_version,
58+
"download_url": file_url,
59+
"downloaded_at": timezone.now(),
60+
},
6361
)
6462

6563
if created:

api_app/analyzers_manager/migrations/0164_update_capa.py renamed to api_app/analyzers_manager/migrations/0166_update_capa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def migrate(apps, schema_editor):
5858
class Migration(migrations.Migration):
5959

6060
dependencies = [
61-
("analyzers_manager", "0163_analyzer_config_guarddoggeneric"),
61+
("analyzers_manager", "0165_analyzer_config_joesandboxurl"),
6262
]
6363

6464
operations = [migrations.RunPython(migrate, migrations.RunPython.noop)]

api_app/analyzers_manager/migrations/0165_analyzerrulesfileversion.py renamed to api_app/analyzers_manager/migrations/0167_analyzerrulesfileversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Migration(migrations.Migration):
88

99
dependencies = [
1010
("api_app", "0071_delete_last_elastic_report"),
11-
("analyzers_manager", "0164_update_capa"),
11+
("analyzers_manager", "0166_update_capa"),
1212
]
1313

1414
operations = [

0 commit comments

Comments
 (0)