Created
March 21, 2014 00:14
-
-
Save qpfiffer/9676869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 791ae0840290992d296093676a34c5755b2ba077 Mon Sep 17 00:00:00 2001 | |
From: Quinlan Pfiffer <[email protected]> | |
Date: Thu, 20 Mar 2014 17:12:17 -0700 | |
Subject: [PATCH] get_expiration should work now. | |
--- | |
streamulus/database.py | 4 +--- | |
1 file changed, 1 insertion(+), 3 deletions(-) | |
diff --git a/streamulus/database.py b/streamulus/database.py | |
index e393ab3..25491a1 100755 | |
--- a/streamulus/database.py | |
+++ b/streamulus/database.py | |
@@ -64,9 +64,7 @@ class LiveStream(object): | |
'transcode': self._transcode, | |
} | |
if db.get(self.prefix + self._cid) and set_expire == False: | |
- #temporary until oleg has a getexpire | |
- db.set(self.prefix + self._cid, val, timeout=(60 * 60 * 24)) | |
- #db.set(self.prefix + self._cid, val, timeout=int(db.getexpire(self.prefix + self._cid))) | |
+ db.set(self.prefix + self._cid, val, timeout=int(db.get_expiration(self.prefix + self._cid))) | |
else: | |
db.set(self.prefix + self._cid, val, timeout=(60 * 60 * 24)) | |
-- | |
1.7.9.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment