FOIA_Doc_Search / analytics.py
GodsDevProject's picture
Upload 98 files
bb0b469 verified
raw
history blame
221 Bytes
import time
from collections import Counter
_events = Counter()
def track(event: str):
_events[event] += 1
def snapshot():
return {
"timestamp": int(time.time()),
"events": dict(_events)
}