You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just ran burst mode and it made the purchase for 0.99 a few days early. Also had this fun error!
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "debbit.py", line 127, in burst_loop
burst_gap = get_burst_min_gap(merchant, cur_purchase_count, now) + random.randint(0, int(merchant.burst_time_variance))
File "debbit.py", line 148, in get_burst_min_gap
dynamic_burst_min_gap = int(remaining_secs_in_month / 4 / remaining_purchase_count * merchant.burst_count)
ZeroDivisionError: float division by zero
I think it was working fine in spread mode, but I was having problems with running from source on Windows and Mac gave me a better error message (#21) so I was trying that out :)
The text was updated successfully, but these errors were encountered:
Yes, advanced is the right key now. Sorry I've been refactoring and changing things quite a lot while trying to get a 2.0 release out. Eventually the documentation and the code will match 😅
Thanks for pointing out the divide by zero error. I fixed that and pushed it to master.
I have 3 cards configured like this:
Just ran burst mode and it made the purchase for 0.99 a few days early. Also had this fun error!
I think it was working fine in spread mode, but I was having problems with running from source on Windows and Mac gave me a better error message (#21) so I was trying that out :)
The text was updated successfully, but these errors were encountered: