From 9870956f3dab8d517c27fd291dafba1db194f53e Mon Sep 17 00:00:00 2001 From: Alex Zai Date: Sat, 31 Oct 2015 17:30:09 -0700 Subject: [PATCH] (feat) add version --- src/config.py | 2 +- src/drive.py | 5 +++-- src/version | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 src/version diff --git a/src/config.py b/src/config.py index 9007270..bfb3bed 100644 --- a/src/config.py +++ b/src/config.py @@ -7,4 +7,4 @@ TOKEN_URL = 'https://www.googleapis.com/oauth2/v3/token' FILES_URL = 'https://www.googleapis.com/drive/v2/files?orderBy=lastViewedByMeDate+desc&fields=items' -CACHE_MAX_AGE = 60*5 # cache set to 5 minutes \ No newline at end of file +CACHE_MAX_AGE = 60*10 # cache set to 10 minutes \ No newline at end of file diff --git a/src/drive.py b/src/drive.py index baf3a59..ac5f366 100644 --- a/src/drive.py +++ b/src/drive.py @@ -11,10 +11,11 @@ def main(_): options = True if wf.args[0][0] == '>' else False if wf.update_available: + # wf.start_update() wf.add_item( 'An update is available!', - autocomplete='workflow:update', - valid=False) + autocomplete='workflow:update') + return wf.send_feedback() try: user_input = wf.args[0][1::].strip() if options else wf.args[0] diff --git a/src/version b/src/version new file mode 100644 index 0000000..a58941b --- /dev/null +++ b/src/version @@ -0,0 +1 @@ +1.3 \ No newline at end of file