Doc Issue? "How to suggest new visits" command syntax error
I've been running Dawarich for a few months but never bothered to setup reverse geocoding until now. Got that all sorted and decided to manually kick off the creation of visits using the command mentioned here
However, when I ran this command block (with modified dates of course)
start_at = DateTime.new(2025, 04, 30) # change as you need
end_at = DateTime.new(2025, 09, 07) # change as you need
user = User.find_by(email: '[email protected]')
BulkVisitsSuggestingJob.perform_later(start_at: start_at, end_at: end_at, user_ids: [user.id])
I kept getting the following syntax errors pointing to the "end_at" line where "09" is:
| ^ unexpected integer, expecting end-of-input
| ^ unexpected integer; expected a `)` to close the arguments
| ^ unexpected ')', ignoring it
| ^ unexpected ')', expecting end-of-input
After some playing around I realized it was the leading zeros causing the issue. For some reason the leading zero on "04" from the first line is fine but as soon as you get to "08" (05-07 worked fine too) you start getting the above error. So I trimmed all leading zeros:
start_at = DateTime.new(2025, 4, 30) # change as you need
end_at = DateTime.new(2025, 9, 7) # change as you need
After that the command worked fine! Maybe mention some in this section about not having leading zeros?
Thanks for making a great app!!