Verified Commit b5638531 authored by Elger Jonker's avatar Elger Jonker

bugfixes: column lengths behave differently between databases

parent c487aba8
......@@ -21,16 +21,10 @@ msgstr ""
#: failmap/map/models.py:113
msgid "Organization Rating"
msgstr ""
"Organizations often have an extensive online presence with several websites "
"and other services. The sum of the security of all of these services defines "
"if the organization is secure or not."
#: failmap/map/models.py:114
msgid "Organization Ratings"
msgstr ""
"Organizations often have an extensive online presence with several websites "
"and other services. The sum of the security of all of these services defines "
"if the organization is secure or not."
#: failmap/map/models.py:197
msgid "Url Rating"
......
......@@ -20,11 +20,11 @@ msgstr ""
#: failmap/map/models.py:113
msgid "Organization Rating"
msgstr "Beoordeling"
msgstr "Organisatie beoordeling"
#: failmap/map/models.py:114
msgid "Organization Ratings"
msgstr "Beoordelingen"
msgstr "Organisatie beoordelingen"
#: failmap/map/models.py:197
msgid "Url Rating"
......
# Generated by Django 2.1.3 on 2018-11-14 07:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scanners', '0049_auto_20181031_1300'),
]
operations = [
migrations.AlterField(
model_name='endpointgenericscan',
name='rating',
field=models.CharField(default=0, help_text="Preferably an integer, 'True' or 'False'. Keep ratings over time consistent.", max_length=16),
),
migrations.AlterField(
model_name='urlgenericscan',
name='rating',
field=models.CharField(default=0, help_text="Preferably an integer, 'True' or 'False'. Keep ratings over time consistent.", max_length=16),
),
]
......@@ -413,7 +413,7 @@ class GenericScanMixin(ExplainMixin, LatestScanMixin):
help_text="The type of scan that was performed. Instead of having different tables for each"
"scan, this label separates the scans.")
rating = models.CharField(
max_length=10,
max_length=16,
default=0,
help_text="Preferably an integer, 'True' or 'False'. Keep ratings over time consistent."
)
......
......@@ -456,6 +456,8 @@ def save_scan(url, data):
else:
trust = "trusted"
# If you're deleting TlsQualysScanManager because of legacy reasons, also delete the two lines or the entire
# script of split_tls_qualys scans.
TlsQualysScanManager.add_scan(failmap_endpoint, rating, rating_no_trust, "Ready")
EndpointScanManager.add_scan('tls_qualys_certificate_trusted', failmap_endpoint, trust, "")
EndpointScanManager.add_scan('tls_qualys_encryption_quality', failmap_endpoint, rating_no_trust, "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment