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