Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

since_months darf nicht 0 sein #2

Open
thomst opened this issue Jul 30, 2015 · 1 comment
Open

since_months darf nicht 0 sein #2

thomst opened this issue Jul 30, 2015 · 1 comment

Comments

@thomst
Copy link
Collaborator

thomst commented Jul 30, 2015

Wenn in Zeile 152 SecureRandom.random_number für since_months eine 0 generiert, dann gibt SecureRandom.random_number(since_months) in Zeile 158 einen float zwischen 0 und 1 zurück.
Damit kommt es zu folgendem Fehler:

generate_contacts.rb:170:in each': can't iterate from Float (TypeError) from generate_contacts.rb:170:inblock in

'
from generate_contacts.rb:150:in each' from generate_contacts.rb:150:in'

Zeile 152 muss folgendermaßen lauten:
since_months = SecureRandom.random_number($contribution_timespan) + 1

@tpokorra
Copy link
Contributor

tpokorra commented Jun 1, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants