Skip to content

Commit

Permalink
(feat) update images
Browse files Browse the repository at this point in the history
  • Loading branch information
azai91 committed Nov 8, 2015
1 parent f3f8b74 commit dda1bc7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/drive_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import subprocess
from config import CLIENT_ID, CLIENT_SECRET, SCOPE, REDIRECT_URI, FILES_URL, AUTH_URL, TOKEN_URL, TOKEN_URL, CACHE_MAX_AGE
import requests
from workflow import Workflow, ICON_USER
from workflow import Workflow, ICON_EJECT, ICON_ACCOUNT, ICON_BURN, ICON_CLOCK
UPDATE_SETTINGS = {'github_slug' : 'azai91/alfred-drive-workflow'}
HELP_URL = 'https://github.com/azai91/alfred-drive-workflow/issues'

Expand Down Expand Up @@ -118,7 +118,7 @@ def show_options(cls, user_input):
def show_login(cls):
wf.add_item(title='d > login',
arg='login',
icon=ICON_USER,
icon=ICON_ACCOUNT,
autocomplete='> login',
valid=True)

Expand All @@ -127,33 +127,33 @@ def show_logout(cls):
wf.add_item(title='d > logout',
arg='logout',
autocomplete='> logout',
icon=ICON_USER,
icon=ICON_EJECT,
valid=True)

@classmethod
def show_clear_cache(cls):
wf.add_item(title='d > clear cache',
arg='clear',
autocomplete='> clear cache',
icon=ICON_USER,
icon=ICON_BURN,
valid=True)

@classmethod
def show_set_cache_length(cls, length):
if not len(length):
wf.add_item(title='d > set cache length [seconds]',
autocomplete='> set cache length ',
icon=ICON_USER)
icon=ICON_CLOCK)
else:
try:
int(length)
wf.add_item(title='d > set cache length %s seconds' % length,
arg='set' + length,
icon=ICON_USER,
icon=ICON_CLOCK,
valid=True)
except:
wf.add_item(title='please insert valid cache length',
icon=ICON_USER)
icon=ICON_CLOCK)

@classmethod
def add_update(cls):
Expand Down

0 comments on commit dda1bc7

Please sign in to comment.