don't print stats after execution
This commit is contained in:
parent
b9a575219a
commit
2c45db029d
3
main.py
3
main.py
@ -11,8 +11,6 @@ from sqlalchemy.engine import Connection
|
||||
import gpxpy
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from stats import print_stats
|
||||
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read('config.ini')
|
||||
@ -119,7 +117,6 @@ def main():
|
||||
init_database()
|
||||
get_gpx_files_from_mail()
|
||||
db.transaction(process_gpx_files)
|
||||
print_stats(db)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
11
stats.py
11
stats.py
@ -1,11 +0,0 @@
|
||||
from sqlalchemy.engine import Connection
|
||||
from tabulate import tabulate
|
||||
|
||||
def print_stats(db: Connection):
|
||||
overall_stats = """
|
||||
select *
|
||||
from training_info
|
||||
"""
|
||||
|
||||
print(tabulate(list(db.execute(overall_stats)),
|
||||
headers = ["date", "start_time", "end_time", "duration", "distance", "pace (km/h)"]))
|
Loading…
x
Reference in New Issue
Block a user