summaryrefslogtreecommitdiff
path: root/crawler.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-01-23 20:04:34 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-01-23 20:04:34 +0100
commit7082b09f7804553487c469630b526d239e7adf06 (patch)
treee287061ce8c940d611c1d53cd9b03ab202dcec1e /crawler.py
parent068035760ca3abd22b67d0b53bf73f2e83209b53 (diff)
downloadapigrabber-7082b09f7804553487c469630b526d239e7adf06.tar.gz
apigrabber-7082b09f7804553487c469630b526d239e7adf06.zip
api: fix getting new matches
Diffstat (limited to 'crawler.py')
-rw-r--r--crawler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawler.py b/crawler.py
index 96eb8ce..07ca22f 100644
--- a/crawler.py
+++ b/crawler.py
@@ -78,4 +78,6 @@ class Crawler(object):
:return: Processed API response
:rtype: list of dict
"""
+ date = ".".join(date.split(".")[:-1]) # remove microseconds
+ date = date + "Z"
return await self.matches(region, {"filter[createdAt-start]": date})