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

As a finance guy, I would like to easily receive a breakdown of badge sales by date #3828

Open
belthesar opened this issue Oct 18, 2021 · 1 comment

Comments

@belthesar
Copy link
Contributor

Hola! I tried digging through the codebase for a hot sec to see if I could come up with this on my own easily, but that turned out to be a lie. 🤣

I would like, either as a separate report or as a part of the badges sold report, a breakdown of badges sold based on the following criteria:

  • Badges sold per month leading up to the date of an event
  • Badges sold by day for the days of an event
@binary1230
Copy link
Contributor

Haven't looked in forever but here's a couple of breadcrumbs about the graphs system which pulls that badge-per-day info:
https://github.com/magfest/ubersystem/blob/master/uber/static/analytics/attendance.js
https://github.com/magfest/ubersystem/blob/master/uber/templates/statistics/badges_sold.html
https://github.com/magfest/ubersystem/blob/master/uber/site_sections/statistics.py#L253
https://github.com/magfest/ubersystem/blob/master/uber/site_sections/statistics.py#L23

Also, if you drop a file in called (I think) extra_attendance_data.json in the web server directory with the historical data from the prior year, you can view them all side by side. support on that is up here it looks like. It can be generated by copy+pasting the previous year's attendance data API output into a static JSON file.
https://github.com/magfest/infrastructure/blob/master/reggie_config/super_2022/init.yaml#L4

I'm sure other folks know this stuff better than me at this point, I just couldn't remember if I documented that stuff anywhere.

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