Commit f6edadd1 authored by Francesco Poldi's avatar Francesco Poldi

Fix arg timedelta

parent 74bb6407
...@@ -23,7 +23,8 @@ Command|Usage ...@@ -23,7 +23,8 @@ Command|Usage
`-s`|Search for Tweets containing this word or phrase. `-s`|Search for Tweets containing this word or phrase.
`-g`|Retrieve tweets by geolocation. Format of the argument is lat,lon,range(km or mi). `-g`|Retrieve tweets by geolocation. Format of the argument is lat,lon,range(km or mi).
`-o`|Save output to a file. `-o`|Save output to a file.
`-es`|Output to Elasticsearch `-es`|Output to Elasticsearch.
`-t`|Choose the time interval for every request.
`--year`|Filter Tweets before the specified year. `--year`|Filter Tweets before the specified year.
`--fruit`|Display Tweets with "low-hanging-fruit". `--fruit`|Display Tweets with "low-hanging-fruit".
`--tweets`|Display Tweets only. `--tweets`|Display Tweets only.
......
...@@ -440,6 +440,9 @@ async def main(): ...@@ -440,6 +440,9 @@ async def main():
print(str) print(str)
sys.exit(1) sys.exit(1)
if not arg.timedelta:
arg.timedelta = 30
if arg.userid is not None: if arg.userid is not None:
arg.u = await getUsername() arg.u = await getUsername()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment