deanishe / alfred-convert

Convert between different units in Alfred

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRC is being used for 2 currencies

harroyoc opened this issue · comments

commented

Costa Rican Colon (CRC) exchange rate is either completely off, or the workflow is using the CraftCoin (also CRC) currency when converting to CRC.

crc

the workflow is using the CraftCoin (also CRC) currency when converting to CRC

That's exactly what's happening.

It looks like quite a few cryptocurrencies duplicate the symbols of fiat currencies.

For the time being, I've disabled conflicting currencies (mostly the crypto ones).

Grab v3.3.1 from releases or enter conv workflow:update into Alfred.

Enter conv workflow:delcache if you'd like to force exchange rates to be updated immediately (the bad data will still be in the cache).

is it possible that you modify the plugin to output multiple results, one for each currency?

is it possible that you modify the plugin to output multiple results, one for each currency?

No, I'm afraid not. The pint library (perfectly understandably) expects a name to refer to a single unit only.

It might be possible if the conflicting units weren't both currencies, but if the creators of CraftCoin (and the rest) were silly enough to use a code that's already assigned to a different currency, then it was bound to cause some issues…

If you'd rather have CraftCoin than the Costa Rican colon, you can uncomment the former and comment out the latter in config.py.

The only currencies that are fundamentally unsupported are ones whose currency codes begin with digits.

I'm closing this issue, as I've solved the issue, albeit by removing some currencies.