|
@@ -362,10 +362,14 @@ class FeedBackView(View):
|
|
event_time=event_time,
|
|
event_time=event_time,
|
|
index=index)
|
|
index=index)
|
|
s3.copy_obj(PUSH_BUCKET, PUSH_INACCURATE_BUCKET, file_path)
|
|
s3.copy_obj(PUSH_BUCKET, PUSH_INACCURATE_BUCKET, file_path)
|
|
- PushInaccurateFeedback.objects.create(equipment_info_id=equipment_info_id,
|
|
|
|
- user_id=user_id, event_type=event_type,
|
|
|
|
- uid=uid, channel=channel, add_time=now_time,
|
|
|
|
- is_st=is_st, event_time=event_time, tag=tag)
|
|
|
|
|
|
+ push_inaccurate_feedback_qs = PushInaccurateFeedback.objects.create(equipment_info_id=equipment_info_id,
|
|
|
|
+ user_id=user_id, event_type=event_type,
|
|
|
|
+ uid=uid, channel=channel,
|
|
|
|
+ add_time=now_time,
|
|
|
|
+ is_st=is_st, event_time=event_time)
|
|
|
|
+ if tag:
|
|
|
|
+ push_inaccurate_feedback_qs.tag = tag
|
|
|
|
+ push_inaccurate_feedback_qs.save()
|
|
return response.json(0)
|
|
return response.json(0)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
return response.json(500, repr(e))
|
|
return response.json(500, repr(e))
|