Flask-Analytics
Flask-Analytics copied to clipboard
Update analytics.py
self.app should be available in init_app as well, otherwise it will fail when calling source function.
Coverage increased (+0.006%) to 99.254% when pulling 2be6ae06399dbcc1a00af35b4e6a4f5185300e48 on Xumeiquer:master into 48bea12574a038d6af0424c83470ebe6d70527fa on citruspi:master.
I'm wanting to use this package at work and am hitting the same bug. I can confirm that this pr fixes the error I'm getting. I know this pr is two years old, but if there's any way it could be merged and pypi updated, it'd be a great benefit to a good number of people (as searching Flask Google analytics pulls this project up as the first result).