@@ -2,7 +2,6 @@ |
||
| 2 | 2 |
|
| 3 | 3 |
from __future__ import division |
| 4 | 4 |
|
| 5 |
-from django_logit import logit |
|
| 6 | 5 |
from django_response import response |
| 7 | 6 |
from TimeConvert import TimeConvert as tc |
| 8 | 7 |
|
@@ -20,12 +19,13 @@ def upload_antigen(request): |
||
| 20 | 19 |
|
| 21 | 20 |
try: |
| 22 | 21 |
user = IsolationPointUserInfo.objects.get(fields__icontains=phone, status=True) |
| 23 |
- user.detect_at = detect_at |
|
| 24 |
- user.antigen_result = result |
|
| 25 |
- user.save() |
|
| 26 | 22 |
except IsolationPointUserInfo.DoesNotExist: |
| 27 | 23 |
user = None |
| 28 | 24 |
|
| 25 |
+ user.detect_at = detect_at |
|
| 26 |
+ user.antigen_result = result |
|
| 27 |
+ user.save() |
|
| 28 |
+ |
|
| 29 | 29 |
AntigenMeasureLogInfo.objects.create( |
| 30 | 30 |
point_id=user.point_id if user else '', |
| 31 | 31 |
user_id=user.user_id if user else '', |
@@ -13,7 +13,7 @@ class IsolationPointFieldPoolInfoAdmin(admin.ModelAdmin): |
||
| 13 | 13 |
|
| 14 | 14 |
|
| 15 | 15 |
class IsolationPointInfoAdmin(admin.ModelAdmin): |
| 16 |
- list_display = ('point_id', 'point_name', 'point_fields', 'point_upload_period', 'limit_scene_qrcode_url', 'status', 'created_at', 'updated_at')
|
|
| 16 |
+ list_display = ('point_id', 'point_name', 'point_fields', 'point_upload_period', 'temperature_measure_type', 'limit_scene_qrcode_url', 'status', 'created_at', 'updated_at')
|
|
| 17 | 17 |
|
| 18 | 18 |
|
| 19 | 19 |
class IsolationPointUserInfoAdmin(admin.ModelAdmin): |