I am trying to pass the {query}
parameter to my python script (python newbie) so I can create a really simply calculation.
Heres what the workflow looks like:
My python script looks like this:
query="{query}"
x = float(query)/60
y = x*100
print "%.2f" % x, "%.2f" % y
However when I run it my debug returns this error:
[2018-10-13 21:56:25][ERROR: action.script]
Traceback (most recent call last):
File "/Users/Imran/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/A4A451B6-E747-4D1C-A957-431E755787A5", line 3, in <module>
x = float(query)/60
ValueError: could not convert string to float: {query}
How can I resolve this? I want to be able to run bill 30
to return a percentage calculation for me.