peng пре 2 година
родитељ
комит
7f8c49cfb4
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Object/RedisObject.py

+ 2 - 2
Object/RedisObject.py

@@ -101,8 +101,8 @@ class RedisObject:
 
     def set_ex_data(self, key, val, expire=0):
         try:
-            self.CONN.setex(key, val, expire)
+            self.CONN.setex(key, expire, val)
         except Exception as e:
             return False
         else:
-            return True
+            return True