From 94e4a7b70bbd8864cb7c8b5482db5caf7bfbd279 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Wed, 4 Oct 2023 13:02:31 +0200 Subject: organize imports --- bjoern/videoanalyse/LogParser.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bjoern/videoanalyse/LogParser.py') diff --git a/bjoern/videoanalyse/LogParser.py b/bjoern/videoanalyse/LogParser.py index b41804d..5b9f992 100755 --- a/bjoern/videoanalyse/LogParser.py +++ b/bjoern/videoanalyse/LogParser.py @@ -1,16 +1,17 @@ -# -*- coding: utf-8 -*- +#!/usr/bin/env python3 """ This script takes multiple .log data files from PCScreenWatcher and a Firefox history database (places.sqlite) inside a folder to extract each activity title, their url if applicable and usage timestamps into a pseudo-csv file. """ +import csv import os import re from datetime import datetime -import csv -from read_sqlite import get_url_from_sqlite from pathlib import Path +from read_sqlite import get_url_from_sqlite + # takes the log data string and returns a list of activity titles and their time windows def extract_activities(log_data): -- cgit v1.2.3