OpenAdapt
OpenAdapt copied to clipboard
Only run posthog if running in production
What kind of change does this PR introduce? This PR changes the posthog init, such that it only runs on production mode, i.e. when run from within the executable, and a couple other small fixes
Summary
Checklist
- [x] My code follows the style guidelines of OpenAdapt
- [x] I have performed a self-review of my code
- [ ] If applicable, I have added tests to prove my fix is functional/effective
- [x] I have linted my code locally prior to submission
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation (e.g. README.md, requirements.txt)
- [x] New and existing unit tests pass locally with my changes
How can your code be run and tested?
Other information