aboutsummaryrefslogtreecommitdiffstats
path: root/pushover.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2013-07-22 05:18:17 -0700
committerThibaut Horel <thibaut.horel@gmail.com>2013-07-22 05:18:17 -0700
commite057972cf477d2846535b9514d964dc00aafcf4a (patch)
treea88c45994117e1c487d7394060e4684da2e58985 /pushover.py
parent06ba42b2ca1da1d9b5ce74f75ff925ef78bbda03 (diff)
parent5f04443ba8796813f12c8a135573637443731e74 (diff)
downloadpython-pushover-e057972cf477d2846535b9514d964dc00aafcf4a.tar.gz
Merge pull request #1 from Crupuk/patch-1
Use true timestamp to avoid "Invalid timestamp"
Diffstat (limited to 'pushover.py')
-rw-r--r--pushover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pushover.py b/pushover.py
index 5f5c61f..f6f8e98 100644
--- a/pushover.py
+++ b/pushover.py
@@ -193,7 +193,7 @@ class Client:
raise ValueError("{0}: invalid message parameter".format(key))
if key == "timestamp" and value:
- payload[key] = time.time()
+ payload[key] = int(time.time())
elif key == "sound":
if not SOUNDS:
get_sounds()