diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2013-07-22 05:18:17 -0700 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2013-07-22 05:18:17 -0700 |
| commit | e057972cf477d2846535b9514d964dc00aafcf4a (patch) | |
| tree | a88c45994117e1c487d7394060e4684da2e58985 /pushover.py | |
| parent | 06ba42b2ca1da1d9b5ce74f75ff925ef78bbda03 (diff) | |
| parent | 5f04443ba8796813f12c8a135573637443731e74 (diff) | |
| download | python-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.py | 2 |
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() |
