소스 검색

修正key

locky 2 년 전
부모
커밋
88266f28d5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Controller/FeedBack.py

+ 2 - 2
Controller/FeedBack.py

@@ -323,9 +323,9 @@ class FeedBackView(View):
             secret_access_key = AWS_SECRET_ACCESS_KEY[1]
             bucket = 'foreignpush'
         if is_st == 3:
-            key = '{uid}/{channel}/{event_time}.jpeg'.format(uid=uid, channel=channel, event_time=event_time)
-        else:
             key = '{uid}/{channel}/{event_time}_0.jpeg'.format(uid=uid, channel=channel, event_time=event_time)
+        else:
+            key = '{uid}/{channel}/{event_time}.jpeg'.format(uid=uid, channel=channel, event_time=event_time)
         try:
             s3 = AmazonS3Util(
                 aws_access_key_id=aws_access_key_id,