Skip to content

Commit

Permalink
update to python3
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannicoppola committed May 22, 2022
1 parent dd3278b commit bc74279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file added releases/Convert_3-99.alfredworkflow
Binary file not shown.
6 changes: 3 additions & 3 deletions src/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load_cryptocurrency_rates(symbols):
"""
url = CRYPTO_COMPARE_BASE_URL.format(REFERENCE_CURRENCY, ','.join(symbols))

log.debug ("CRYPTO++++++++++++++")
log.debug('fetching %s ...', url)
r = web.get(url, headers={'User-Agent': USER_AGENT})
r.raise_for_status()
Expand Down Expand Up @@ -197,10 +197,10 @@ def fetch_exchange_rates():
else:
jobs = [(load_openx_rates, (syms,))]

log.debug("RATTTTEEEEEESSSSSSS ")

syms = []
for s in CRYPTO_CURRENCIES.keys():
log.debug("CRYPTOOOO %s" % s)

if s in CURRENCIES:
log.warning('ignoring crytopcurrency "%s", as it conflicts with '
'a fiat currency', s)
Expand Down
4 changes: 2 additions & 2 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ UPDATE_INTERVAL is the number of minutes between exchange rate updates.</string>
<key>variables</key>
<dict>
<key>APP_KEY</key>
<string></string>
<string>b8d1bd23fd3f4c1aaebb23402ada98bd</string>
<key>COPY_UNIT</key>
<string></string>
<key>CURRENCY_DECIMAL_PLACES</key>
Expand All @@ -666,7 +666,7 @@ UPDATE_INTERVAL is the number of minutes between exchange rate updates.</string>
<key>THOUSANDS_SEPARATOR</key>
<string>,</string>
<key>UPDATE_INTERVAL</key>
<string>2</string>
<string>60</string>
</dict>
<key>variablesdontexport</key>
<array>
Expand Down

0 comments on commit bc74279

Please sign in to comment.