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

fix panic when closing day with <5 admissions #38

Open
zramsay opened this issue Sep 2, 2017 · 0 comments
Open

fix panic when closing day with <5 admissions #38

zramsay opened this issue Sep 2, 2017 · 0 comments

Comments

@zramsay
Copy link
Collaborator

zramsay commented Sep 2, 2017

this ugly hack

point-of-sale/main.go

Lines 504 to 510 in 7904668

if err := db.QueryRow("SELECT date FROM visits WHERE invoice_id=5").Scan(&date); err != nil {
if err := db.QueryRow("SELECT date FROM visits WHERE invoice_id=10").Scan(&date); err != nil {
if err := db.QueryRow("SELECT date FROM visits WHERE invoice_id=15").Scan(&date); err != nil {
panic(err)
}
}
}

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

1 participant