chrislennon/Crypto-Touchbar-App

Redd Coin won't update

sutheep opened this issue · 6 comments

Reddcoin won't update on touchbar. Shows an error.

Traceback (most recent call last):
File "", line 5, in
ValueError: Unknown format code 'f' for object of type 'unicode'

Confirmed, I get errors for redcoin when using either of the following options:

  • Relative $ Range (-$000 / +$000)
  • Change % based on opening (+10%)
  • Relative % Range (-8% / +10%)
  • Relative $ Range based on user percentage (-$000 / +$000)

The others appear to work. Will investigate and push a correction today.

@sutheep #70 should of now fixed this - and should now be deployed, I hadn't checked the 'advanced options' fully.

Give it a test see if you can replicate it - if you run into it again just let me know which coin and which settings (or a copy of the script) 😄

Hey, thanks for the code (by the way can use 3 ` symbols to start and stop a code block).

Thanks to your response i think i see the issue. Looks like the formatting options are causing issues for certain coins - I'm going to dig into this soon to see if i can resolve it globablly.

However for now, in your example above it looks like unticking 'Separate thousands with commas' and keeping the decimal places to infinite resolves it for now.

Will update this ticket when I have a a better fix in place.

This issue has been closed as part of #76.

After moving to python away from applescript there were a few issues regarding formatting options. This PR should resolve the issues going forward, please let me know if it works and of course if the issue continues reopen this issue and we can debug further.