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
|
owner=self.tk.owner.institution
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
|
|
||||||
if not prop:
|
if not prop:
|
||||||
logger.error("Error: No property for uuid: %s", ev_uuid)
|
logger.error("Error: No property for uuid: %s", ev_uuid)
|
||||||
return JsonResponse({'status': 'fail'}, status=500)
|
return JsonResponse({'status': 'fail'}, status=500)
|
||||||
|
|
|
@ -85,11 +85,11 @@ class Device:
|
||||||
key__in=algos,
|
key__in=algos,
|
||||||
).values_list("value", flat=True)))
|
).values_list("value", flat=True)))
|
||||||
|
|
||||||
def get_evidences(self):
|
def get_properties(self):
|
||||||
if not self.uuids:
|
if not self.uuids:
|
||||||
self.get_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):
|
def get_last_evidence(self):
|
||||||
if self.last_evidence:
|
if self.last_evidence:
|
||||||
|
@ -103,7 +103,6 @@ class Device:
|
||||||
if not properties.count():
|
if not properties.count():
|
||||||
return
|
return
|
||||||
prop = properties.first()
|
prop = properties.first()
|
||||||
|
|
||||||
self.last_evidence = Evidence(prop.uuid)
|
self.last_evidence = Evidence(prop.uuid)
|
||||||
|
|
||||||
def is_eraseserver(self):
|
def is_eraseserver(self):
|
||||||
|
|
|
@ -127,7 +127,6 @@ class UserTagForm(forms.Form):
|
||||||
institution=self.user.institution
|
institution=self.user.institution
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class ImportForm(forms.Form):
|
class ImportForm(forms.Form):
|
||||||
file_import = forms.FileField(label=_("File to import"))
|
file_import = forms.FileField(label=_("File to import"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue