variables and function semantic renaming
This commit is contained in:
parent
976ce43e6e
commit
8e046854f3
|
@ -122,7 +122,6 @@ class NewSnapshotView(ApiMixing):
|
|||
owner=self.tk.owner.institution
|
||||
).first()
|
||||
|
||||
|
||||
if not prop:
|
||||
logger.error("Error: No property for uuid: %s", ev_uuid)
|
||||
return JsonResponse({'status': 'fail'}, status=500)
|
||||
|
|
|
@ -85,11 +85,11 @@ class Device:
|
|||
key__in=algos,
|
||||
).values_list("value", flat=True)))
|
||||
|
||||
def get_evidences(self):
|
||||
def get_properties(self):
|
||||
if not self.uuids:
|
||||
self.get_uuids()
|
||||
|
||||
self.evidences = [Evidence(u) for u in self.uuids]
|
||||
self.properties = [SystemProperty(u) for u in self.uuids]
|
||||
|
||||
def get_last_evidence(self):
|
||||
if self.last_evidence:
|
||||
|
@ -103,7 +103,6 @@ class Device:
|
|||
if not properties.count():
|
||||
return
|
||||
prop = properties.first()
|
||||
|
||||
self.last_evidence = Evidence(prop.uuid)
|
||||
|
||||
def is_eraseserver(self):
|
||||
|
|
|
@ -127,7 +127,6 @@ class UserTagForm(forms.Form):
|
|||
institution=self.user.institution
|
||||
)
|
||||
|
||||
|
||||
class ImportForm(forms.Form):
|
||||
file_import = forms.FileField(label=_("File to import"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue