flask-track-usage icon indicating copy to clipboard operation
flask-track-usage copied to clipboard

Can't import "sumVisitors"

Open mooseyoose opened this issue 5 years ago • 2 comments

I'm trying to use the sumVisitors hook but I get the error when I try to import it:

ImportError: cannot import name 'sumVisitors' from 'flask_track_usage.summarization'

Any idea?

Thanks.

mooseyoose avatar Nov 06 '20 17:11 mooseyoose

Hi @mooseyoose! Are you seeing this in master or in a specific release?

ashcrow avatar Nov 06 '20 19:11 ashcrow

Ah, right. This code which hasn't been implemented and is listed as "TBD". You can see it at https://github.com/ashcrow/flask-track-usage/blob/master/src/flask_track_usage/summarization/init.py#L178-L196

ashcrow avatar Nov 06 '20 20:11 ashcrow